mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Update web-platform-tests to revision d23db97703021bdeb4ec21ff5ce3e9de54dd4d85
This commit is contained in:
parent
54d2b7de29
commit
77784e512e
163 changed files with 3806 additions and 3068 deletions
|
@ -57,5 +57,23 @@
|
|||
);
|
||||
// TODO: Test more variant of resoruces attribute values.
|
||||
}, "resoruces attribute must return null or specified value");
|
||||
|
||||
test(() => {
|
||||
const link = document.createElement("link");
|
||||
assert_class_string(link.resources, "DOMTokenList");
|
||||
assert_equals(
|
||||
String(link.resources.value),
|
||||
"",
|
||||
"resources.value should return the empty list for an undefined resources attribute"
|
||||
);
|
||||
link.setAttribute(
|
||||
"resources",
|
||||
"https://test1.example.com https://test2.example.com "
|
||||
);
|
||||
assert_array_equals(link.resources, [
|
||||
"https://test1.example.com",
|
||||
"https://test2.example.com"
|
||||
]);
|
||||
}, "resources must be DOMTokenList");
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue