Bug 1452481 [wpt PR 10353] - Update expected cssText for custom property serialization, a=testonly
authorChris Nardi <christopherncarmel@hotmail.com>
Mon, 09 Apr 2018 22:31:59 +0000
changeset 467328 291cf72732db4c39939013dcf4376b0847c7965e
parent 467327 ca4d8311c5ad935a0e9c289d061f6da3d5f9317e
child 467329 0b7049a25f7590571b33fb445f3bb57054c92c9c
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1452481, 10353
milestone61.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 1452481 [wpt PR 10353] - Update expected cssText for custom property serialization, a=testonly Automatic update from web-platform-testsUpdate expected cssText for custom property serialization See https://github.com/w3c/csswg-drafts/issues/2509#issuecomment-379152590 for the change to target9. Also remove the extra whitespace in target8 and target1 which causes these tests to fail in Chrome and Firefox. Also remove testcase.propertyName from each test's name as this doesn't exist and just outputs undefined. wpt-commits: d0d62244432d329aa22e9278d3e83184301c3e7f wpt-pr: 10353 wpt-commits: d0d62244432d329aa22e9278d3e83184301c3e7f wpt-pr: 10353
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-variables/variable-cssText.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -528296,17 +528296,17 @@
    "50b1ab1f4ce2b77f852af113818b94d03d74732e",
    "testharness"
   ],
   "css/css-variables/variable-created-element.html": [
    "e2c135317f9b78c0fa4f90dbb751b73f3d988b7e",
    "testharness"
   ],
   "css/css-variables/variable-cssText.html": [
-   "601a35a06498f52982dbce18531fb8e12ab292ba",
+   "c61df48b0ccce3d136ec15755dfc4efa35c209ac",
    "testharness"
   ],
   "css/css-variables/variable-definition-border-shorthand-serialize.html": [
    "be7f736f5909ef11ec11466bb81da8cdc4095df3",
    "testharness"
   ],
   "css/css-variables/variable-definition-cascading.html": [
    "0be93185a6f1ef0c380a692c051db4e66a82b333",
--- a/testing/web-platform/tests/css/css-variables/variable-cssText.html
+++ b/testing/web-platform/tests/css/css-variables/variable-cssText.html
@@ -23,31 +23,31 @@
 <div id="target8" style="color: green; color: var(--prop);"></div>
 <div id="target9" style="margin: var(--prop); margin-top: 10px"></div>
 <div id="target10"style="expando: var(--prop);"></div>
 
 <script type="text/javascript">
     "use strict";
 
     var testcases = [
-        { element: "target1",   expectedCssText: "--var:  var1;" },
+        { element: "target1",   expectedCssText: "--var: var1;" },
         { element: "target2",   expectedCssText: "margin: var(--prop);" },
         { element: "target3",   expectedCssText: "background: var(--prop);" },
         { element: "target4",   expectedCssText: "margin: var(--prop)  !important;" },
         { element: "target5",   expectedCssText: "background: var(--prop)  !important;" },
         { element: "target6",   expectedCssText: "background: green;" },
         { element: "target7",   expectedCssText: "background: var(--prop);" },
-        { element: "target8",   expectedCssText: "color:  var(--prop);" },
-        { element: "target9",   expectedCssText: "margin-top: 10px; margin-right: ; margin-bottom: ; margin-left: ;" },
+        { element: "target8",   expectedCssText: "color: var(--prop);" },
+        { element: "target9",   expectedCssText: "margin-right: ; margin-bottom: ; margin-left: ; margin-top: 10px;" },
         { element: "target10",  expectedCssText: "" }
     ];
 
     testcases.forEach(function (testcase) {
         test( function () {
             var div = document.getElementById(testcase.element);
             var actualCssText = div.style.cssText;
             assert_equals(actualCssText, testcase.expectedCssText);
-        }, testcase.element + " " + testcase.propertyName);
+        }, testcase.element);
     });
 </script>
 
 </body>
 </html>