Update web-platform-tests to revision b7ee88243f64e6c7f2d00c163bd3bc501e4db7ef

This commit is contained in:
WPT Sync Bot 2018-02-06 20:08:49 -05:00
parent 804b4b3db6
commit a4b4c8e015
134 changed files with 2918 additions and 388 deletions

View file

@ -44,6 +44,10 @@
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>

View file

@ -83,6 +83,11 @@
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>

View file

@ -3,7 +3,7 @@
<head>
<title>CSSOM Parsing Test: @font-face rules parsed into CSSOM CSSFontFaceRules</title>
<link rel="author" title="Paul Irish" href="mailto:paul.irish@gmail.com">
<link rel="help" href="http://www.w3.org/TR/cssom-1/#css-font-face-rule">
<link rel="help" href="https://drafts.csswg.org/cssom/#css-rules">
<meta name="flags" content="dom">
@ -44,7 +44,7 @@
test(function(){
assert_equals(validRules[0].style.src, 'url(http://foo/bar/font.ttf)');
assert_equals(validRules[0].style.src, 'url("http://foo/bar/font.ttf")');
assert_equals(validRules[1].style.fontFamily, 'STIXGeneral');
/* unimplemented @font-face properties are not represented in CSSOM */