From f2ffc2d1fa2aefd6b674da3d4abfd9a9b59218db Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Mon, 18 May 2015 15:43:51 -0700 Subject: No need to time out tests Jasmine has its own timeout timer on each spec, so we don't need to set one up ourselves. [endlessm/eos-sdk#3171] --- test/webhelper/testTranslate.js | 6 ------ test/webhelper/testUpdateFontSize.js | 6 ------ test/webhelper/testWebActions.js | 6 ------ 3 files changed, 18 deletions(-) diff --git a/test/webhelper/testTranslate.js b/test/webhelper/testTranslate.js index f4d4f68..da8c77a 100644 --- a/test/webhelper/testTranslate.js +++ b/test/webhelper/testTranslate.js @@ -33,12 +33,6 @@ const WebHelperApplicationWithTranslatableText = new Lang.Class({ this.quit(); } })); - - // Add an upper bound on how long the app runs, in case app.quit() does - // not get called - GLib.timeout_add_seconds(GLib.PRIORITY_HIGH, 5, Lang.bind(this, function() { - this.quit(); - })); } }); diff --git a/test/webhelper/testUpdateFontSize.js b/test/webhelper/testUpdateFontSize.js index 4aaaefb..8bd26be 100644 --- a/test/webhelper/testUpdateFontSize.js +++ b/test/webhelper/testUpdateFontSize.js @@ -33,12 +33,6 @@ const WebUpdateFontSizeTestApplication = new Lang.Class({ if (this.accept_callback !== null) this.accept_callback(this.win, this.websettings.default_font_size); - - // Add an upper bound on how long the app runs, in case app.quit() does - // not get called - GLib.timeout_add_seconds(GLib.PRIORITY_HIGH, 5, Lang.bind(this, function () { - this.quit(); - })); }, accept_callback: null, diff --git a/test/webhelper/testWebActions.js b/test/webhelper/testWebActions.js index c543a43..e937fb6 100644 --- a/test/webhelper/testWebActions.js +++ b/test/webhelper/testWebActions.js @@ -24,12 +24,6 @@ const WebActionTestApplication = new Lang.Class({ this.scrolled = new Gtk.ScrolledWindow(); this.scrolled.add(this.webview); this.win.page_manager.add(this.scrolled); - - // Add an upper bound on how long the app runs, in case app.quit() does - // not get called - GLib.timeout_add_seconds(GLib.PRIORITY_HIGH, 5, Lang.bind(this, function() { - this.quit(); - })); } }); -- cgit v1.2.3