Update web-platform-tests to revision d23db97703021bdeb4ec21ff5ce3e9de54dd4d85

This commit is contained in:
WPT Sync Bot 2020-06-12 08:22:41 +00:00
parent 54d2b7de29
commit 77784e512e
163 changed files with 3806 additions and 3068 deletions

View file

@ -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>