Bug 1387932 - stylo: add exception to inspector's test_getRelativeRuleLine. r?xidorn draft
authorFernando Jimenez Moreno <ferjmoreno@gmail.com>
Fri, 11 Aug 2017 19:22:10 +0200
changeset 644990 66a8c0dc0b36c88052b29b92ae05a24307e8f740
parent 644865 65826179c86e2a3538bcffd969556937e15688cd
child 725777 c3f6fdf91256804f4a7ffd10d62c1de19c7eaed9
push id73620
push userferjmoreno@gmail.com
push dateFri, 11 Aug 2017 17:22:58 +0000
reviewersxidorn
bugs1387932
milestone57.0a1
Bug 1387932 - stylo: add exception to inspector's test_getRelativeRuleLine. r?xidorn MozReview-Commit-ID: 7Oyc8aXmACX
layout/inspector/tests/mochitest.ini
layout/inspector/tests/test_getRelativeRuleLine.html
--- a/layout/inspector/tests/mochitest.ini
+++ b/layout/inspector/tests/mochitest.ini
@@ -23,17 +23,16 @@ fail-if = stylo # bug 1387913
 [test_getCSSStyleRules.html]
 support-files =
   file_getCSSStyleRules-default.html
   file_getCSSStyleRules-alternate.html
   getCSSStyleRules-1.css
   getCSSStyleRules-2.css
 [test_getCSSPseudoElementNames.html]
 [test_getRelativeRuleLine.html]
-fail-if = stylo # bug 1387932
 [test_get_all_style_sheets.html]
 [test_is_valid_css_color.html]
 [test_isinheritableproperty.html]
 [test_parseStyleSheet.html]
 [test_parseStyleSheetImport.html]
 fail-if = stylo # bug 1387933
 [test_selectormatcheselement.html]
 fail-if = stylo # bug 1387934
--- a/layout/inspector/tests/test_getRelativeRuleLine.html
+++ b/layout/inspector/tests/test_getRelativeRuleLine.html
@@ -24,19 +24,21 @@
      #test {
        color: blue;
      }
   </style>
   <script type="application/javascript">
   let utils = SpecialPowers.Cc["@mozilla.org/inspector/dom-utils;1"]
                            .getService(SpecialPowers.Ci.inIDOMUtils);
 
+  const supportsRuleColumn = SpecialPowers.DOMWindowUtils.isStyledByServo ? 14
+                                                                          : 15;
   let tests = [
     { sheetNo: 0, ruleNo: 0, lineNo: 1, columnNo: 1 },
-    { sheetNo: 1, ruleNo: 0, lineNo: 2, columnNo: 15 },
+    { sheetNo: 1, ruleNo: 0, lineNo: 2, columnNo: supportsRuleColumn },
     { sheetNo: 1, ruleNo: 1, lineNo: 8, columnNo: 5 },
     { sheetNo: 2, ruleNo: 0, lineNo: 1, columnNo: 1 },
     { sheetNo: 2, ruleNo: 1, lineNo: 0, columnNo: 1 },
     { sheetNo: 3, ruleNo: 0, lineNo: 5, columnNo: 6 },
   ];
 
   function doTest() {
     document.styleSheets[2].insertRule("body{}", 1);