Bug 1350875 - Disable file_fullscreen-api.html and file_fullscreen-scrollbar.html for linux m-e10s. r?xidorn draft
authorKan-Ru Chen <kanru@kanru.info>
Fri, 07 Apr 2017 15:40:27 -0400
changeset 559730 66daa3221a733583a4ebfaee29d01103a4b04df4
parent 559608 731639fccc709a4dd95fed7e9dda88efb2227906
child 623483 bae458ada94969d5e092f15b44cf4a853fae0160
push id53187
push userxquan@mozilla.com
push dateMon, 10 Apr 2017 13:53:58 +0000
reviewersxidorn
bugs1350875
milestone55.0a1
Bug 1350875 - Disable file_fullscreen-api.html and file_fullscreen-scrollbar.html for linux m-e10s. r?xidorn MozReview-Commit-ID: IMbnY2nfSNW
dom/html/test/test_fullscreen-api.html
--- a/dom/html/test/test_fullscreen-api.html
+++ b/dom/html/test/test_fullscreen-api.html
@@ -57,22 +57,30 @@ function finish() {
 
 function nextTest() {
   if (testWindow) {
     testWindow.close();
   }
   SimpleTest.executeSoon(runNextTest);
 }
 
+var gLinuxE10sSkipList = [
+  { "test": "file_fullscreen-plugins.html", "reason": "bug 1330553" },
+  { "test": "file_fullscreen-api.html", "reason": "bug 1332040" },
+  { "test": "file_fullscreen-scrollbar.html", "reason": "bug 1350875" }
+];
+
 function shouldSkipTest(test) {
-  if (test == "file_fullscreen-plugins.html") {
-    if (!SpecialPowers.isMainProcess() &&
-        navigator.platform.indexOf('Linux') >= 0) {
-      // Bug 1330553
-      return true;
+  if (!SpecialPowers.isMainProcess() &&
+      navigator.platform.indexOf('Linux') >= 0) {
+    for (let item of gLinuxE10sSkipList) {
+      if (item.test == test) {
+        todo(false, `${test} skipped due to ${item.reason}`);
+        return true;
+      }
     }
   }
   return false;
 }
 
 function runNextTest() {
   if (gTestIndex < gTestWindows.length) {
     let test = gTestWindows[gTestIndex];