mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>DOMTokenList stringifier</title>
|
||||
<link rel=help href="https://dom.spec.whatwg.org/#dom-domtokenlist-stringifier">
|
||||
<link rel=author title=Ms2ger href="mailto:Ms2ger@gmail.com">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<span class=" a a b"></span>
|
||||
<script>
|
||||
test(function() {
|
||||
var span = document.querySelector("span");
|
||||
assert_equals(span.getAttribute("class"), " a a b",
|
||||
"getAttribute should return the literal value");
|
||||
assert_equals(span.className, " a a b",
|
||||
"className should return the literal value");
|
||||
assert_equals(String(span.classList), "a b",
|
||||
"String(classList) should compress whitespace");
|
||||
assert_equals(span.classList.toString(), "a b",
|
||||
"classList.toString() should compress whitespace");
|
||||
assert_class_string(span.classList, "DOMTokenList");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue