Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html |
index e22422b1e6754c029319d3691cdd9cc18fb3abf1..2384c620c01661173658e6ceff38dee9c58fe9e0 100644 |
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html |
@@ -66,8 +66,8 @@ test(function () { |
assert_equals( elem.classList.toString(), ' ', 'explicit' ); |
}, 'classList should contain initial markup whitespace'); |
test(function () { |
- assert_throws( 'SYNTAX_ERR', function () { elem.classList.contains(''); } ); |
-}, '.contains(empty_string) must throw a SYNTAX_ERR'); |
+ assert_false( elem.classList.contains('') ); |
+}, '.contains(empty_string) must return false'); |
test(function () { |
assert_throws( 'SYNTAX_ERR', function () { elem.classList.add(''); } ); |
}, '.add(empty_string) must throw a SYNTAX_ERR'); |
@@ -85,8 +85,8 @@ test(function () { |
assert_throws( 'SYNTAX_ERR', function () { elem.classList.replace('', ''); } ); |
}, '.replace with empty_string must throw a SYNTAX_ERR'); |
test(function () { |
- assert_throws( 'INVALID_CHARACTER_ERR', function () { elem.classList.contains('a b'); } ); |
-}, '.contains(string_with_spaces) must throw an INVALID_CHARACTER_ERR'); |
+ assert_false( elem.classList.contains('a b') ); |
+}, '.contains(string_with_spaces) must return false'); |
test(function () { |
assert_throws( 'INVALID_CHARACTER_ERR', function () { elem.classList.add('a b'); } ); |
}, '.add(string_with_spaces) must throw an INVALID_CHARACTER_ERR'); |