OLD | NEW |
1 This is a testharness.js-based test. | 1 This is a testharness.js-based test. |
2 PASS Element.classList must exist as an object | 2 PASS Element.classList must exist as an object |
3 PASS Element.classList must exist as an object even if the element has no class
attribute | 3 PASS Element.classList must exist as an object even if the element has no class
attribute |
4 PASS DOMTokenList should be exposed for prototyping | 4 PASS DOMTokenList should be exposed for prototyping |
5 PASS prototyping DOMTokenList should work | 5 PASS prototyping DOMTokenList should work |
6 PASS Element.classList must implement DOMTokenList | 6 PASS Element.classList must implement DOMTokenList |
7 PASS CSS .foo selectors must not match elements without any class | 7 PASS CSS .foo selectors must not match elements without any class |
8 FAIL classList must be correct for an element that has classes assert_equals: du
plicates in initial string should be removed per https://dom.spec.whatwg.org/#co
ncept-class expected 1 but got 2 | 8 FAIL classList must be correct for an element that has classes assert_equals: du
plicates in initial string should be removed per https://dom.spec.whatwg.org/#co
ncept-class expected 1 but got 2 |
9 PASS classList.length must be 0 for an element that has no classes | 9 PASS classList.length must be 0 for an element that has no classes |
10 PASS classList must not contain an undefined class | 10 PASS classList must not contain an undefined class |
11 PASS classList.item() must return null for out-of-range index | 11 PASS classList.item() must return null for out-of-range index |
12 PASS classList.item() must return null for negative index | 12 PASS classList.item() must return null for negative index |
13 PASS classList[index] must be undefined for out-of-range index | 13 PASS classList[index] must be undefined for out-of-range index |
14 PASS classList[index] must be undefined for negative index | 14 PASS classList[index] must be undefined for negative index |
15 FAIL className should contain initial markup whitespace assert_equals: expected
" " but got "" | 15 PASS className should contain initial markup whitespace |
16 PASS classList should contain initial markup whitespace | 16 PASS classList should contain initial markup whitespace |
17 FAIL .contains(empty_string) must return false Failed to execute 'contains' on '
DOMTokenList': The token provided must not be empty. | 17 FAIL .contains(empty_string) must return false Failed to execute 'contains' on '
DOMTokenList': The token provided must not be empty. |
18 PASS .add(empty_string) must throw a SYNTAX_ERR | 18 PASS .add(empty_string) must throw a SYNTAX_ERR |
19 PASS .remove(empty_string) must throw a SYNTAX_ERR | 19 PASS .remove(empty_string) must throw a SYNTAX_ERR |
20 PASS .toggle(empty_string) must throw a SYNTAX_ERR | 20 PASS .toggle(empty_string) must throw a SYNTAX_ERR |
21 FAIL .replace with empty_string must throw a SYNTAX_ERR assert_throws: function
"function () { elem.classList.replace('', 'foo'); }" threw object "TypeError: el
em.classList.replace is not a function" that is not a DOMException SYNTAX_ERR: p
roperty "code" is equal to undefined, expected 12 | 21 FAIL .replace with empty_string must throw a SYNTAX_ERR assert_throws: function
"function () { elem.classList.replace('', 'foo'); }" threw object "TypeError: el
em.classList.replace is not a function" that is not a DOMException SYNTAX_ERR: p
roperty "code" is equal to undefined, expected 12 |
22 FAIL .contains(string_with_spaces) must return false Failed to execute 'contains
' on 'DOMTokenList': The token provided ('a b') contains HTML space characters,
which are not valid in tokens. | 22 FAIL .contains(string_with_spaces) must return false Failed to execute 'contains
' on 'DOMTokenList': The token provided ('a b') contains HTML space characters,
which are not valid in tokens. |
23 PASS .add(string_with_spaces) must throw an INVALID_CHARACTER_ERR | 23 PASS .add(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
24 PASS .remove(string_with_spaces) must throw an INVALID_CHARACTER_ERR | 24 PASS .remove(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
25 PASS .toggle(string_with_spaces) must throw an INVALID_CHARACTER_ERR | 25 PASS .toggle(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 FAIL classList.add should treat \t as a space assert_equals: expected "a b" but
got "a\tb" | 72 FAIL classList.add should treat \t as a space assert_equals: expected "a b" but
got "a\tb" |
73 FAIL classList.add should treat \r as a space assert_equals: expected "a b" but
got "a\rb" | 73 FAIL classList.add should treat \r as a space assert_equals: expected "a b" but
got "a\rb" |
74 FAIL classList.add should treat \n as a space assert_equals: expected "a b" but
got "a\nb" | 74 FAIL classList.add should treat \n as a space assert_equals: expected "a b" but
got "a\nb" |
75 FAIL classList.add should treat \f as a space assert_equals: expected "a b" but
got "a\fb" | 75 FAIL classList.add should treat \f as a space assert_equals: expected "a b" but
got "a\fb" |
76 PASS classList.length must be read-only | 76 PASS classList.length must be read-only |
77 PASS classList must have [PutForwards=value] | 77 PASS classList must have [PutForwards=value] |
78 FAIL classList.replace should work foo.classList.replace is not a function | 78 FAIL classList.replace should work foo.classList.replace is not a function |
79 PASS classList.supports should throw | 79 PASS classList.supports should throw |
80 Harness: the test ran to completion. | 80 Harness: the test ran to completion. |
81 | 81 |
OLD | NEW |