Bug 1526621 [wpt PR 15286] - Use gPV/sP, as that's slightly more well-supported, a=testonly
authorTab Atkins Jr <jackalmage@gmail.com>
Mon, 18 Feb 2019 19:26:19 +0000
changeset 519200 b3874f50c9fb17379335c08ce79eaf35d6a4a3ff
parent 519199 3c869fae6ed4abd5c6b608634167f33c0ab5da7e
child 519201 80797a975d97d6b5af7d2d2bd71a0637d04fae23
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1526621, 15286
milestone67.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 1526621 [wpt PR 15286] - Use gPV/sP, as that's slightly more well-supported, a=testonly Automatic update from web-platform-tests Use gPV/sP, as that's slightly more well-supported Requested by @emilio in <https://github.com/w3c/csswg-drafts/issues/3588#issuecomment-460019494> -- Merge pull request #15286 from web-platform-tests/tabatkins-patch-1 Use gPV/sP, as that's slightly more well-supported -- wpt-commits: f912ea28e7a5451f51d38d62cd0aee489618e4cb, ead8f8b00d0b68237109f3c93d0ccae076a34f98 wpt-pr: 15286
testing/web-platform/tests/css/css-syntax/urange-parsing.html
--- a/testing/web-platform/tests/css/css-syntax/urange-parsing.html
+++ b/testing/web-platform/tests/css/css-syntax/urange-parsing.html
@@ -16,27 +16,27 @@
 <meta name=author title="Tab Atkins-Bittner">
 <link rel=help href="https://drafts.csswg.org/css-syntax/#urange-syntax">
 
 <script>
 
 function testUrange(input, expected) {
     test(()=>{
         const rule = document.styleSheets[0].cssRules[0];
-        rule.style.unicodeRange = "U+1357";
-        rule.style.unicodeRange = input;
-        assert_equals(rule.style.unicodeRange.toUpperCase(), expected.toUpperCase());
+        rule.style.setProperty("unicode-range", "U+1357");
+        rule.style.setProperty("unicode-range", input);
+        assert_equals(rule.style.getPropertyValue("unicode-range").toUpperCase(), expected.toUpperCase());
     }, `"${input}" => "${expected}"`)
 }
 function testInvalidUrange(input) {
     test(()=>{
         const rule = document.styleSheets[0].cssRules[0];
-        rule.style.unicodeRange = "U+1357";
-        rule.style.unicodeRange = input;
-        assert_equals(rule.style.unicodeRange.toUpperCase(), "U+1357");
+        rule.style.setProperty("unicode-range", "U+1357");
+        rule.style.setProperty("unicode-range", input);
+        assert_equals(rule.style.getPropertyValue("unicode-range").toUpperCase(), "U+1357");
     }, `"${input}" is invalid`);
 }
 
 /* First exercise all the clauses individually */
 //<urange> =
 //  u '+' <ident-token> '?'* |
 /* comments can go between tokens */
 testUrange("u/**/+/**/a/**/?", "U+A0-AF");