mirror of
https://github.com/servo/servo.git
synced 2025-09-02 11:08:22 +01:00
Update web-platform-tests to revision 86e157b387e63ba586d8ad51d2fcd5690626f5ad
This commit is contained in:
parent
bc82521eb7
commit
b642b70974
54 changed files with 728 additions and 480 deletions
|
@ -30,4 +30,13 @@ test(() => {
|
|||
test(() => {
|
||||
assert_equals(self.getComputedStyle(document.getElementsByTagName("applet")[0], "").cssFloat, "none");
|
||||
}, "applet is not styled")
|
||||
|
||||
// removed in https://github.com/whatwg/html/commit/e383ae23776362cafb2fb4bbba70c8c9080d4b0f
|
||||
test(() => {
|
||||
assert_false("HTMLTableDataCellElement" in window);
|
||||
}, "HTMLTableDataCellElement interface is removed")
|
||||
|
||||
test(() => {
|
||||
assert_false("HTMLTableHeaderCellElement" in window);
|
||||
}, "HTMLTableHeaderCellElement interface is removed")
|
||||
</script>
|
||||
|
|
|
@ -114,12 +114,15 @@ test(() => {
|
|||
test(() => {
|
||||
const select = document.getElementById("select-same-object-change");
|
||||
const before = select.selectedOptions;
|
||||
assert_equals(before.length, 3);
|
||||
|
||||
select.selectedOptions[1].selected = false;
|
||||
|
||||
const after = select.selectedOptions;
|
||||
|
||||
assert_equals(before, after);
|
||||
assert_equals(before.length, 2);
|
||||
assert_equals(after.length, 2);
|
||||
|
||||
}, ".selectedOptions should return the same object after selection changes - [SameObject]");
|
||||
</script>
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Encoding specified in the "charset" attribute should have precedence over "content" attribute.</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r" charset="iso-8859-15">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
test(function () {
|
||||
assert_equals(document.characterSet, "ISO-8859-15");
|
||||
}, "Encoding specified in the 'charset' attribute should have precedence over 'content' attribute.");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue