Bug 1530179: Replace promiseWaitForCondition with TestUtils.waitForCondition in browser_double_close_tab.js r=johannh
authorjjo <jjo.su1822@gmail.com>
Mon, 04 Mar 2019 12:43:09 +0000
changeset 520181 79c8caa8661252b8ecbc98c4c2a8ad91304c010a
parent 520180 1cc8b60d8a6bcbcca357e2e32c047669fb50d12e
child 520182 b6a5fe5a1c5287718bab9da980c212afac30a8ee
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;