Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist-expected.txt |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist-expected.txt |
index 5532bffc61ca2898c6c86f272c8b207d56c24512..d4abfd961e64f2aecee68e564a67224058ea7fdc 100644 |
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist-expected.txt |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist-expected.txt |
@@ -18,10 +18,13 @@ PASS .contains(empty_string) must throw a SYNTAX_ERR |
PASS .add(empty_string) must throw a SYNTAX_ERR |
PASS .remove(empty_string) must throw a SYNTAX_ERR |
PASS .toggle(empty_string) must throw a SYNTAX_ERR |
+FAIL .replace with empty_string must throw a SYNTAX_ERR assert_throws: function "function () { elem.classList.replace('', 'foo'); }" threw object "TypeError: elem.classList.replace is not a function" that is not a DOMException SYNTAX_ERR: property "code" is equal to undefined, expected 12 |
PASS .contains(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
PASS .add(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
PASS .remove(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
PASS .toggle(string_with_spaces) must throw an INVALID_CHARACTER_ERR |
+FAIL .replace with string_with_spaces must throw a INVALID_CHARACTER_ERR assert_throws: function "function () { elem.classList.replace('z', 'a b'); }" threw object "TypeError: elem.classList.replace is not a function" that is not a DOMException INVALID_CHARACTER_ERR: property "code" is equal to undefined, expected 5 |
+FAIL .replace with an already existing token foo.classList.replace is not a function |
PASS computed style must update when setting .className |
PASS classList.contains must update when .className is changed |
PASS classList.contains must be case sensitive |
@@ -51,11 +54,20 @@ PASS classList.toggle must toggle tokens case-sensitively when adding |
PASS classList.toggle must not break case-sensitive CSS selector matching |
PASS classList.toggle must be able to remove tokens |
PASS classList.toggle must be case-sensitive when removing tokens |
+FAIL classList.replace replaces arguments passed, if they are present. secondelem.classList.replace is not a function |
+FAIL classList.replace must replace existing tokens secondelem.classList.replace is not a function |
+FAIL classList.replace must not break case-sensitive CSS selector matching assert_not_equals: got disallowed value "italic" |
+FAIL classList.replace must replace duplicated tokens secondelem.classList.replace is not a function |
+FAIL classList.replace must collapse whitespace around replaced tokens secondelem.classList.replace is not a function |
+FAIL classList.replace must collapse whitespaces around each token secondelem.classList.replace is not a function |
+FAIL classList.replace must collapse whitespaces around each token and remove duplicates secondelem.classList.replace is not a function |
+FAIL classList.replace must collapse whitespace when replacing duplicate tokens secondelem.classList.replace is not a function |
PASS CSS class selectors must stop matching when all classes have been removed |
PASS className must be empty when all classes have been removed |
PASS classList must stringify to an empty string when all classes have been removed |
PASS classList.item(0) must return null when all classes have been removed |
PASS classList[0] must be undefined when all classes have been removed |
+FAIL Invoking add or remove should set the class attribute assert_true: expected true got false |
PASS classList.add should treat " " as a space |
FAIL classList.add should treat \t as a space assert_equals: expected "a b" but got "a\tb" |
FAIL classList.add should treat \r as a space assert_equals: expected "a b" but got "a\rb" |