Bug 1530179: Replace promiseWaitForCondition with TestUtils.waitForCondition in browser_double_close_tab.js r=johannh
☠☠ backed out by ade393862e9d ☠ ☠
authorjjo <jjo.su1822@gmail.com>
Mon, 04 Mar 2019 12:43:09 +0000
changeset 520120 b6c437beca6240f394f7d0c7d5631278f64b499d
parent 520119 2e89b1f1e01c37b604bc37c2cdc41b30698f73fb
child 520121 732aa8c4b98a266cf5f94d0cdb455a19009e10c8
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1530179
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1530179: Replace promiseWaitForCondition with TestUtils.waitForCondition in browser_double_close_tab.js r=johannh Changed promiseWaitForCondition in line 69 to TestUtils.waitForCondition Differential Revision: https://phabricator.services.mozilla.com/D21875
browser/base/content/test/general/browser_double_close_tab.js
--- a/browser/base/content/test/general/browser_double_close_tab.js
+++ b/browser/base/content/test/general/browser_double_close_tab.js
@@ -61,17 +61,17 @@ add_task(async function() {
         doCompletion();
       });
       // Click again:
       document.getAnonymousElementByAttribute(testTab, "anonid", "close-button").click();
     });
     // Click once:
     document.getAnonymousElementByAttribute(testTab, "anonid", "close-button").click();
   });
-  await promiseWaitForCondition(() => !testTab.parentNode);
+  await TestUtils.waitForCondition(() => !testTab.parentNode);
   ok(!testTab.parentNode, "Tab should be closed completely");
 });
 
 registerCleanupFunction(function() {
   if (testTab.parentNode) {
     // Remove the handler, or closing this tab will prove tricky:
     try {
       testTab.linkedBrowser.contentWindow.onbeforeunload = null;