Bug 1318542 - fix testcases due to new pseudo element ::cue. r=heycam draft
authorbechen <bechen@mozilla.com>
Wed, 05 Apr 2017 10:50:58 +0800
changeset 555882 d1852d14364bcdbcdece2f84e6becebec4eaa8f2
parent 555881 7dff3b69f622f2a66cdaaa89b72736aefd5cfdff
child 622727 22a3979abd1c21eb0b3ce978eb48f1f7f5cd31dc
push id52372
push userbechen@mozilla.com
push dateWed, 05 Apr 2017 03:09:42 +0000
reviewersheycam
bugs1318542
milestone55.0a1
Bug 1318542 - fix testcases due to new pseudo element ::cue. r=heycam MozReview-Commit-ID: F10y2zTtBoT
devtools/server/tests/mochitest/test_styles-applied.html
devtools/shared/css/generated/properties-db.js
layout/inspector/tests/test_getCSSPseudoElementNames.html
--- a/devtools/server/tests/mochitest/test_styles-applied.html
+++ b/devtools/server/tests/mochitest/test_styles-applied.html
@@ -83,17 +83,17 @@ addTest(function inheritedSystemStyles()
     // If our system stylesheets are prone to churn, this might be a fragile
     // test.  If you're here because of that I apologize, file a bug
     // and we can find a different way to test.
 
     ok(!applied[1].inherited, "Entry 1 should not be inherited");
     ok(!applied[1].rule.parentStyleSheet.system, "Entry 1 should be a system style");
     is(applied[1].rule.type, 1, "Entry 1 should be a rule style");
 
-    is(applied.length, 12, "Should have 12 rules.");
+    is(applied.length, 13, "Should have 13 rules.");
   }).then(runNextTest));
 });
 
 addTest(function noInheritedStyles() {
   promiseDone(gWalker.querySelector(gWalker.rootNode, "#test-node").then(node => {
     return gStyles.getApplied(node, { inherited: false, filter: "user" });
   }).then(applied => {
     ok(!applied[0].inherited, "Entry 0 should be uninherited");
--- a/devtools/shared/css/generated/properties-db.js
+++ b/devtools/shared/css/generated/properties-db.js
@@ -3266,17 +3266,16 @@ exports.CSS_PROPERTIES = {
       "flat",
       "flex",
       "flex-end",
       "flex-start",
       "flow-root",
       "forwards",
       "full-width",
       "geometricprecision",
-      "grayscale",
       "grid",
       "groove",
       "groupbox",
       "hanging",
       "hard-light",
       "hidden",
       "hide",
       "horizontal",
@@ -9332,16 +9331,17 @@ exports.CSS_PROPERTIES = {
 
 /**
  * A list of the pseudo elements.
  */
 exports.PSEUDO_ELEMENTS = [
   ":after",
   ":before",
   ":backdrop",
+  ":cue",
   ":first-letter",
   ":first-line",
   ":-moz-selection",
   ":-moz-focus-inner",
   ":-moz-focus-outer",
   ":-moz-list-bullet",
   ":-moz-list-number",
   ":-moz-math-anonymous",
--- a/layout/inspector/tests/test_getCSSPseudoElementNames.html
+++ b/layout/inspector/tests/test_getCSSPseudoElementNames.html
@@ -8,16 +8,17 @@
   <script type="application/javascript">
   let utils = SpecialPowers.Cc["@mozilla.org/inspector/dom-utils;1"]
                            .getService(SpecialPowers.Ci.inIDOMUtils);
 
   let expected = new Set([
     ":after",
     ":before",
     ":backdrop",
+    ":cue",
     ":first-letter",
     ":first-line",
     ":placeholder",
     ":-moz-color-swatch",
     ":-moz-focus-inner",
     ":-moz-focus-outer",
     ":-moz-list-bullet",
     ":-moz-list-number",