From 8148615da179fdd60f19018e13b4e94b95609cc6 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 3 Feb 2018 06:00:38 -0500 Subject: Remove browser tests - Part 1: The Tests (except for experiments) --- .../content/test/general/browser_unloaddialogs.js | 41 ---------------------- 1 file changed, 41 deletions(-) delete mode 100644 browser/base/content/test/general/browser_unloaddialogs.js (limited to 'browser/base/content/test/general/browser_unloaddialogs.js') diff --git a/browser/base/content/test/general/browser_unloaddialogs.js b/browser/base/content/test/general/browser_unloaddialogs.js deleted file mode 100644 index bf3790b95..000000000 --- a/browser/base/content/test/general/browser_unloaddialogs.js +++ /dev/null @@ -1,41 +0,0 @@ -var testUrls = - [ - "data:text/html,Testing alert during pagehide/beforeunload/unload", - "data:text/html,Testing prompt during pagehide/beforeunload/unload", - "data:text/html,Testing confirm during pagehide/beforeunload/unload", - ]; - -add_task(function*() { - for (let url of testUrls) { - let tab = yield BrowserTestUtils.openNewForegroundTab(gBrowser, url); - ok(true, "Loaded page " + url); - // Wait one turn of the event loop before closing, so everything settles. - yield new Promise(resolve => setTimeout(resolve, 0)); - yield BrowserTestUtils.removeTab(tab); - ok(true, "Closed page " + url + " without timeout"); - } -}); -- cgit v1.2.3