Bug 1246796. Update test for CSS prop setters/getters. r=me
authorMike Taylor <miket@mozilla.com>
Mon, 25 Jul 2016 10:30:00 -0500
changeset 331850 7df92788ffeba18fdebe3517c858381383981143
parent 331849 f2a6a2af5243b5923a14f78ff9d13679bd844957
child 331851 952c66d3e2182e44a577e23ae558f34475444b09
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1246796
milestone50.0a1
Bug 1246796. Update test for CSS prop setters/getters. r=me
layout/style/test/test_exposed_prop_accessors.html
--- a/layout/style/test/test_exposed_prop_accessors.html
+++ b/layout/style/test/test_exposed_prop_accessors.html
@@ -21,23 +21,21 @@ https://bugzilla.mozilla.org/show_bug.cg
 for (var prop in gCSSProperties) {
   var info = gCSSProperties[prop];
 
   var s = document.createElement("div").style;
 
   is(s[info.domProp], "", prop + " should not be set yet");
   s[info.domProp] = info.initial_values[0];
   isnot(s[info.domProp], "", prop + " should now be set");
-  if (prop[0] != "-") {
-    is(s[prop], s[info.domProp],
-       "Getting " + prop + " via name should work")
-    s = document.createElement("div").style;
-    is(s[info.domProp], "", prop + " should not be set here either");
-    s[prop] = info.initial_values[0];
-    isnot(s[info.prop], "", prop + " should now be set again");
-    is(s[info.domProp], s[prop],
-       "Setting " + prop + " via name should work");
-  }
+  is(s[prop], s[info.domProp],
+     "Getting " + prop + " via name should work")
+  s = document.createElement("div").style;
+  is(s[info.domProp], "", prop + " should not be set here either");
+  s[prop] = info.initial_values[0];
+  isnot(s[info.prop], "", prop + " should now be set again");
+  is(s[info.domProp], s[prop],
+     "Setting " + prop + " via name should work");
 }
 </script>
 </pre>
 </body>
 </html>