Bug 1180574 - Disable fullscreen-api-race subtest 'openNewWindow, navigate' on Linux 32bit. r=philor
authorXidorn Quan <quanxunzhen@gmail.com>
Wed, 08 Jul 2015 08:49:56 +1000
changeset 251832 5543c966eef3a3f4cf58f788b6eb6552fc5dc5c3
parent 251831 8d174c693ac78ad2ccb9c98e23080ac2022d46d4
child 251833 a65b93b59ad9bedd724701cbaace7a54e205557c
push id29013
push usercbook@mozilla.com
push dateWed, 08 Jul 2015 09:47:46 +0000
treeherdermozilla-central@9b902b7669ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilor
bugs1180574
milestone42.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 1180574 - Disable fullscreen-api-race subtest 'openNewWindow, navigate' on Linux 32bit. r=philor
dom/html/test/test_fullscreen-api-race.html
--- a/dom/html/test/test_fullscreen-api-race.html
+++ b/dom/html/test/test_fullscreen-api-race.html
@@ -67,21 +67,39 @@ const ACTION_FUNCS = [
   function exitAndClose(win) {
     info("About to cancel fullscreen and close the window");
     win.document.mozCancelFullScreen();
     win.close();
     return Promise.resolve();
   }
 ];
 
+const DISABLE_LIST = [
+  // Bug 1180574
+  { openWinFunc: "openNewWindow",
+    actionFunc: "navigate",
+    platform: "Linux i686" }
+];
+
 function* testGenerator() {
   for (var openWinFunc of OPEN_WINDOW_FUNCS) {
     for (var actionFunc of ACTION_FUNCS) {
-      info(`Testing ${openWinFunc.name}, ${actionFunc.name}`);
-      yield { openWinFunc: openWinFunc, actionFunc: actionFunc };
+      var skipTest = false;
+      for (var disabledItem of DISABLE_LIST) {
+        if (openWinFunc.name == disabledItem.openWinFunc &&
+            actionFunc.name == disabledItem.actionFunc &&
+            navigator.platform == disabledItem.platform) {
+          skipTest = true;
+          break;
+        }
+      }
+      if (!skipTest) {
+        info(`Testing ${openWinFunc.name}, ${actionFunc.name}`);
+        yield { openWinFunc: openWinFunc, actionFunc: actionFunc };
+      }
     }
   }
 }
 
 var tests = testGenerator();
 
 function next() {
   var test = tests.next().value;