Bug 1454210 [wpt PR 10478] - Correct serialization of URL in background-332.html, a=testonly
authorChris Nardi <christopherncarmel@hotmail.com>
Wed, 06 Jun 2018 17:36:59 +0000
changeset 478990 ef4541dc85a91e5b7a09c9621e9453584937d17f
parent 478989 8501df66d1b82cd635660d7868271fc02bd2f0fb
child 478991 2fb07336773eb12eb5abdee65298c714c092b3ff
push id1757
push userffxbld-merge
push dateFri, 24 Aug 2018 17:02:43 +0000
treeherdermozilla-release@736023aebdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1454210, 10478
milestone62.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 1454210 [wpt PR 10478] - Correct serialization of URL in background-332.html, a=testonly Automatic update from web-platform-testsCorrect serialization of URL in background-332.html (#10478) * Correct serialization of URL in background-332.html According to https://drafts.csswg.org/cssom/#serialize-a-url, the serialization of a URL always includes double-quotes, and per https://drafts.csswg.org/css-values/#relative-urls, if a URL appears in a computed style, it is resolved to an absolute URL. Adjust background-332.html to match the spec, and update the test description to clarify the computed style is being tested. -- wpt-commits: b792706b1001a1e8d93b26e8cea341ecffe8417e wpt-pr: 10478
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-backgrounds/background-332.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -496779,17 +496779,17 @@
    "656d9f4e3a66f8cb955910171b9997140e4bbd8e",
    "support"
   ],
   "css/css-backgrounds/background-331.html": [
    "28185e9f9710a676579fa8de6cc39e1febc9e16f",
    "testharness"
   ],
   "css/css-backgrounds/background-332.html": [
-   "ba3453739dee1dac840b3916b09cf161752d2f1d",
+   "5831da212a187d7f69864475f1fae96053d3a5a7",
    "testharness"
   ],
   "css/css-backgrounds/background-333.html": [
    "42e4208e11dd799e650343b580843b182099a3b2",
    "testharness"
   ],
   "css/css-backgrounds/background-334.html": [
    "bd224c99dba06a0ecfcfc84618ad28dcd5906ad0",
--- a/testing/web-platform/tests/css/css-backgrounds/background-332.html
+++ b/testing/web-platform/tests/css/css-backgrounds/background-332.html
@@ -17,18 +17,18 @@
   <body>
     <div id="log"></div>
     <div id="test"></div>
     <script>
         var cs = getComputedStyle(document.getElementById("test"), null);
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-image"),
-                "url(support/60x60-green.png)", "background specified value for background-image");
-        }, "background_specified_image");
+                'url("' + new URL("support/60x60-green.png", window.location.href).href + '")');
+        }, "Computed value for background-image after setting background shorthand");
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-position"),
                 "40% 50%", "background specified value for background-position");
         }, "background_specified_position");
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-size"),