Bug 1207734 - Part 9.b. (testing) Skip the individual transform functions in when stylo is disabled in test_bug1112014.html. r=dholbert draft
authorBrian Birtles <birtles@gmail.com>
Tue, 30 Jan 2018 14:02:47 -0500
changeset 748978 9e6964d41ad42ce763751ae68bbc3396acd161e9
parent 748977 d98835388589ce36cb0ddf416c276be839ffada9
child 748979 2a115dc38c280c0808dd5eedf711fd4a684a0c9a
push id97286
push userbbirtles@mozilla.com
push dateTue, 30 Jan 2018 19:06:18 +0000
reviewersdholbert
bugs1207734, 1112014
milestone60.0a1
Bug 1207734 - Part 9.b. (testing) Skip the individual transform functions in when stylo is disabled in test_bug1112014.html. r=dholbert The individual transform functions are not implemented in the Gecko style system. Making InspectorUtils.cssPropertySupportsType return false when using the Gecko style system proved difficult and since stylo disabled builds are no longer expected to be shipped, this patch simply skips testing these properties when using the Gecko style system. MozReview-Commit-ID: LwYKw8qge2H
layout/style/test/test_bug1112014.html
--- a/layout/style/test/test_bug1112014.html
+++ b/layout/style/test/test_bug1112014.html
@@ -93,16 +93,24 @@ https://bugzilla.mozilla.org/show_bug.cg
       }
     }
   }
   is(reps.join(","), "", "all types have representative test value");
 
   for (let propertyName in gCSSProperties) {
     let prop = gCSSProperties[propertyName];
 
+    // We don't implement the individual transform properties in the Gecko style
+    // system but Inspector.cssPropertySupportsType will still report the
+    // types these properties *would* support if we did implement them.
+    if (!SpecialPowers.DOMWindowUtils.isStyledByServo &&
+        ['rotate', 'scale', 'translate'].includes(propertyName)) {
+      continue;
+    }
+
     for (let iter in testValues) {
       let testValue = testValues[iter];
       if (propertyName in overrideValues &&
           iter in overrideValues[propertyName]) {
         testValue = overrideValues[propertyName][iter];
       }
 
       let supported =