mirror of
https://github.com/servo/servo.git
synced 2025-08-23 14:25:33 +01:00
Update web-platform-tests to revision b7ee88243f64e6c7f2d00c163bd3bc501e4db7ef
This commit is contained in:
parent
804b4b3db6
commit
a4b4c8e015
134 changed files with 2918 additions and 388 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue