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 348886 7df92788ffeba18fdebe3517c858381383981143
parent 348885 f2a6a2af5243b5923a14f78ff9d13679bd844957
child 348887 952c66d3e2182e44a577e23ae558f34475444b09
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1246796
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>