Bug 1442425 [wpt PR 9407] - Sync CSSImportRule, CSSMediaRule IDL as per the specification, a=testonly
authorBhagirathi Satpathy <bhagirathi.s@samsung.com>
Fri, 02 Mar 2018 10:41:54 +0000
changeset 461402 b11712099a9180902c84bb8a9068eacfd3b3089c
parent 461401 84aca29f0edca599ffe24fa640ee209595681a25
child 461403 1f78bcba96f52d58d518fe9412185403ef6f93af
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1442425, 808004, 896738, 534656
milestone60.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 1442425 [wpt PR 9407] - Sync CSSImportRule, CSSMediaRule IDL as per the specification, a=testonly Automatic update from web-platform-tests Modified CSSImportRule, CSSMediaRule IDL files to match the specification. https://drafts.csswg.org/cssom/#the-cssmediarule-interface https://drafts.csswg.org/cssom/#the-cssimportrule-interface Bug: 808004 Change-Id: I1176e3793a35c85442833f938787468b9304cb93 Reviewed-on: https://chromium-review.googlesource.com/896738 Reviewed-by: Kent Tamura <tkent@chromium.org> Reviewed-by: Yuki Shiino <yukishiino@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Commit-Queue: Bhagirathi Satpathy <bhagirathi.s@samsung.com> Cr-Commit-Position: refs/heads/master@{#534656} <!-- Reviewable:start --> <!-- Reviewable:end --> wpt-commits: 7ad2d2288d4d0353e29ac2c6897ceab8ef4f586c wpt-pr: 9407 reapplied-commits: 370e267e160568862f1fd9ec246ab5bb840f586e, fe4514c84e7ad28e46bad5da93381deb99b177f3, 7806af854343c043a2645a4034fdc7812f65daad, 9ddfd21554293dec5a4bf2e5375ae4f3c9f2ded0, 75f63c4d1ebc949647184fd60972fc7b9fd4affb, 1f3a5b496acd2288cc8cf0c32af86cb35157ea4e, 88b42bd5847abac58a62c4d6b33c1509bfce5f3d, 15c2e4c690700c6c115f8afe5e44ded10d943538, c8d461ef1437641ae7d4ea1d21e1e60cd62910b0, a6088a5f48ee299386a84d2f771902267d7355b1, 0634cd8f08ebe0905a9188fb1398c7b5f889c5dc, c8ee4a012dae506ae06bb5b2ad50942b04c1aaaa, c2c352456a4cf62dcc12f851138b04397675a445, b93a8879555d2fa7e7d4e00a275513a3a6338b35, b86e1331cb36634fd33677043b61fc0c1d8485bc, 44ddf14fd3346658c3223f13652073fafbfa48fa, a1a5840a6bb53e305ba02bcbeb215659342d0edb, 7465cb110ae5ec2e2ca73182caf5293f0efc8fd5, aad5349b3458bc3414e274b33fa86a1123901ff2, eca0907980d2769c449894a6277c60c1a306792f, 38626987c0cfd6e715cfcc6f4f1a1209191a03c5, e4a67f7ddcde6cd99348e9104bd7ed07074da44a, bb3c9990840a0fae2afc840b5952d7874785b112, 042d7adef0bdb9dc80e825c3997ace7519477c42, 99f1ea44fc7915b8b7b33bce4732fa8765fd3ac2
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/cssom/MediaList.html
testing/web-platform/tests/css/cssom/cssimportrule.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -525135,17 +525135,17 @@
    "f0d47464da9d30e70733f09af78f3e9f982c4406",
    "testharness"
   ],
   "css/cssom/GetBoundingRect.html": [
    "7e5a8b25753ac970c2d192376c9dd93943b3dbb5",
    "testharness"
   ],
   "css/cssom/MediaList.html": [
-   "784bc428e8e65a0784dcf89c6e3e27305781cc72",
+   "0357bff95fc870624d13ad3bf61cdfff5b2ad1cf",
    "testharness"
   ],
   "css/cssom/MediaList2.xhtml": [
    "c7481f3c0fe943abb6d67004d6c4aaff12180e34",
    "testharness"
   ],
   "css/cssom/OWNERS": [
    "f131f271cb2f747e845584abcc445348e8c86521",
@@ -525163,17 +525163,17 @@
    "9199534f3b6cc473832562b1701ade3a05dde172",
    "testharness"
   ],
   "css/cssom/css-style-declaration-modifications.html": [
    "c169d758c1d91b75697b04cf72750f8ac1650e1a",
    "testharness"
   ],
   "css/cssom/cssimportrule.html": [
-   "da36c32a7ecad7542c73572917709ee394dc843c",
+   "f8a110a236529e78b528117b25866015d67568d9",
    "testharness"
   ],
   "css/cssom/cssom-cssText-serialize.html": [
    "66ad91da39c1e1da9021f6443e9b6d34baf57dcb",
    "testharness"
   ],
   "css/cssom/cssom-cssstyledeclaration-set.html": [
    "12f5dce3d37a718ac5c872f662cc9f3d9cf09179",
--- a/testing/web-platform/tests/css/cssom/MediaList.html
+++ b/testing/web-platform/tests/css/cssom/MediaList.html
@@ -39,12 +39,16 @@
         assert_equals(media[2], "speech", "MediaList indexed getter after append method");
         assert_equals(media[3], undefined, "MediaList indexed getter with out of range after append method");
         assert_equals(media.item(2), "speech", "MediaList item method after append method");
         assert_equals(media.item(3), null, "MediaList item method after append method");
 
         media.mediaText = null;
         assert_equals(media.mediaText, "", "MediaList mediaText attribute should be empty string in case of null");
         assert_equals(media.toString(), "", "MediaList toString method should be empty string in case of null");
+
+        var rule = document.styleSheets[0].cssRules[0];
+        rule.media = "speech";
+        assert_equals(rule.media.mediaText, "speech", "MediaList mediaText attribute should be updated");
     });
     </script>
 </head>
 </html>
--- a/testing/web-platform/tests/css/cssom/cssimportrule.html
+++ b/testing/web-platform/tests/css/cssom/cssimportrule.html
@@ -78,11 +78,16 @@
 
         test(function() {
             assert_equals(typeof rule.href, "string");
             assert_true(rule.media instanceof MediaList);
             assert_true(rule.styleSheet instanceof CSSStyleSheet);
             assert_true(ruleWithMedia.media.length > 0);
             assert_equals(ruleWithMedia.media.mediaText, "screen");
         }, "Values of CSSImportRule attributes");
+
+        test(function() {
+            ruleWithMedia.media = "print";
+            assert_equals(ruleWithMedia.media.mediaText, "print");
+        }, "MediaList mediaText attribute should be updated");
     </script>
 </body>
 </html>