OLD | NEW |
(Empty) | |
| 1 This is a testharness.js-based test. |
| 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 |
| 4 PASS DOMTokenList should be exposed for prototyping |
| 5 PASS prototyping DOMTokenList should work |
| 6 PASS Element.classList must implement DOMTokenList |
| 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 |
| 9 PASS classList.length must be 0 for an element that has no classes |
| 10 PASS classList must not contain an undefined class |
| 11 PASS classList.item() must return null for out-of-range index |
| 12 PASS classList.item() must return null for negative index |
| 13 PASS classList[index] must be undefined for out-of-range index |
| 14 PASS classList[index] must be undefined for negative index |
| 15 FAIL className should contain initial markup whitespace assert_equals: expected
" " but got "" |
| 16 FAIL empty classList should return the empty string since the ordered set parser
skip the whitespaces assert_equals: implicit expected "" but got " " |
| 17 PASS .contains(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 |
| 20 PASS .toggle(empty_string) must throw a SYNTAX_ERR |
| 21 PASS .contains(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
| 22 PASS .add(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
| 23 PASS .remove(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
| 24 PASS .toggle(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
| 25 PASS computed style must update when setting .className |
| 26 PASS classList.contains must update when .className is changed |
| 27 PASS classList.contains must be case sensitive |
| 28 PASS classList.contains must not match when punctuation characters are added |
| 29 PASS classList.add must not cause the CSS selector to stop matching |
| 30 PASS classList.add must not remove existing classes |
| 31 PASS classList.contains case sensitivity must match a case-specific string |
| 32 PASS classList.length must correctly reflect the number of tokens |
| 33 PASS classList.item(0) must return the first token |
| 34 PASS classList.item must return case-sensitive strings and preserve token order |
| 35 PASS classList[0] must return the first token |
| 36 PASS classList[index] must return case-sensitive strings and preserve token orde
r |
| 37 PASS classList[index] must still be undefined for out-of-range index when earlie
r indexes exist |
| 38 PASS className must update correctly when items have been added through classLis
t |
| 39 PASS classList must stringify correctly when items have been added |
| 40 PASS classList.add should not add a token if it already exists |
| 41 PASS classList.remove removes arguments passed, if they are present. |
| 42 PASS classList.remove must remove existing tokens |
| 43 PASS classList.remove must not break case-sensitive CSS selector matching |
| 44 PASS classList.remove must remove duplicated tokens |
| 45 PASS classList.remove must collapse whitespace around removed tokens |
| 46 PASS classList.remove must collapse whitespaces around each token |
| 47 FAIL classList.remove must collapse whitespaces around each token and remove dup
licates assert_equals: implicit expected "token1" but got "token1 token1" |
| 48 PASS classList.remove must collapse whitespace when removing duplicate tokens |
| 49 FAIL classList.add must collapse whitespaces and remove duplicates when adding a
token that already exists assert_equals: implicit expected "token1" but got "
token1 token1 " |
| 50 PASS classList.toggle must toggle tokens case-sensitively when adding |
| 51 PASS classList.toggle must not break case-sensitive CSS selector matching |
| 52 PASS classList.toggle must be able to remove tokens |
| 53 PASS classList.toggle must be case-sensitive when removing tokens |
| 54 PASS CSS class selectors must stop matching when all classes have been removed |
| 55 PASS className must be empty when all classes have been removed |
| 56 PASS classList must stringify to an empty string when all classes have been remo
ved |
| 57 PASS classList.item(0) must return null when all classes have been removed |
| 58 PASS classList[0] must be undefined when all classes have been removed |
| 59 PASS classList.add should treat " " as a space |
| 60 FAIL classList.add should treat \t as a space assert_equals: expected "a b" but
got "a\tb" |
| 61 FAIL classList.add should treat \r as a space assert_equals: expected "a b" but
got "a\rb" |
| 62 FAIL classList.add should treat \n as a space assert_equals: expected "a b" but
got "a\nb" |
| 63 FAIL classList.add should treat \f as a space assert_equals: expected "a b" but
got "a\fb" |
| 64 PASS classList.length must be read-only |
| 65 PASS classList must be read-only |
| 66 Harness: the test ran to completion. |
| 67 |
OLD | NEW |