Bug 1363361 - Disable browser_windowopen_reflows.js on Linux and Win 8 x64 for frequent failures. r?florian draft
authorMike Conley <mconley@mozilla.com>
Fri, 14 Jul 2017 15:33:57 -0400
changeset 612551 ecd790da64721949fd74c62b9a363bf000a37e39
parent 612550 3857cf02eaca11ed869669d6224d49d013bd31d0
child 638438 95d5ba07a3be2af713f24f479326c2c44067dccc
push id69528
push usermconley@mozilla.com
push dateThu, 20 Jul 2017 19:59:48 +0000
reviewersflorian
bugs1363361, 1381521, 1380465
milestone56.0a1
Bug 1363361 - Disable browser_windowopen_reflows.js on Linux and Win 8 x64 for frequent failures. r?florian Bug 1381521 and bug 1380465 were opened to investigate and re-enable these tests. MozReview-Commit-ID: KbiDfqfF0ht
browser/base/content/test/performance/browser.ini
browser/base/content/test/performance/browser_windowopen_reflows.js
--- a/browser/base/content/test/performance/browser.ini
+++ b/browser/base/content/test/performance/browser.ini
@@ -11,8 +11,9 @@ skip-if = !debug
 [browser_tabclose_grow_reflows.js]
 [browser_tabclose_reflows.js]
 [browser_tabopen_reflows.js]
 [browser_tabopen_squeeze_reflows.js]
 [browser_tabswitch_reflows.js]
 [browser_toolbariconcolor_restyles.js]
 [browser_windowclose_reflows.js]
 [browser_windowopen_reflows.js]
+skip-if = os == 'linux' # Disabled due to frequent failures. Bug 1380465.
--- a/browser/base/content/test/performance/browser_windowopen_reflows.js
+++ b/browser/base/content/test/performance/browser_windowopen_reflows.js
@@ -124,16 +124,22 @@ if (Services.appinfo.OS == "WINNT" || Se
   );
 }
 
 /*
  * This test ensures that there are no unexpected
  * uninterruptible reflows when opening new windows.
  */
 add_task(async function() {
+  const IS_WIN8 = (navigator.userAgent.indexOf("Windows NT 6.2") != -1);
+  if (IS_WIN8) {
+    ok(true, "Skipping this test because of perma-failures on Windows 8 x64 (bug 1381521)");
+    return;
+  }
+
   // Flushing all caches helps to ensure that we get consistent
   // behaviour when opening a new window, even if windows have been
   // opened in previous tests.
   Services.obs.notifyObservers(null, "startupcache-invalidate");
   Services.obs.notifyObservers(null, "chrome-flush-skin-caches");
   Services.obs.notifyObservers(null, "chrome-flush-caches");
 
   let win = OpenBrowserWindow();