mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 697b971060b2d475a73c1c3755232a4674d61cf5
This commit is contained in:
parent
f60598909a
commit
b97474fbba
236 changed files with 4817 additions and 893 deletions
|
@ -8,11 +8,46 @@
|
|||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
document.documentElement.removeChild(document.body);
|
||||
document.fgColor = "green";
|
||||
document.bgColor = "green";
|
||||
document.linkColor = "green";
|
||||
document.vlinkColor = "green";
|
||||
document.alinkColor = "green";
|
||||
|
||||
var body = document.documentElement.removeChild(document.body);
|
||||
|
||||
// When there is no body element, the color attributes return an
|
||||
// empty string upon getting.
|
||||
assert_equals(document.fgColor, "");
|
||||
assert_equals(document.bgColor, "");
|
||||
assert_equals(document.linkColor, "");
|
||||
assert_equals(document.vlinkColor, "");
|
||||
assert_equals(document.alinkColor, "");
|
||||
})
|
||||
|
||||
// Re-add body and reset color attributes.
|
||||
document.body = body;
|
||||
document.fgColor = "";
|
||||
document.bgColor = "";
|
||||
document.linkColor = "";
|
||||
document.vlinkColor = "";
|
||||
document.alinkColor = "";
|
||||
}, "getting document color attributes with no body");
|
||||
|
||||
test(function() {
|
||||
var body = document.documentElement.removeChild(document.body);
|
||||
|
||||
// When there is no body element, setting the color attributes has no effect.
|
||||
document.fgColor = "red";
|
||||
document.bgColor = "red";
|
||||
document.linkColor = "red";
|
||||
document.vlinkColor = "red";
|
||||
document.alinkColor = "red";
|
||||
assert_equals(document.fgColor, "");
|
||||
assert_equals(document.bgColor, "");
|
||||
assert_equals(document.linkColor, "");
|
||||
assert_equals(document.vlinkColor, "");
|
||||
assert_equals(document.alinkColor, "");
|
||||
|
||||
document.body = body;
|
||||
}, "setting document color attributes with no body");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue