Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js

Issue 2898063003: DOMTokenList.contains() should not throw. (Closed)
Patch Set: Move the comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js
index b62810098299e4aee485ba4d2b55b2ef9dd3199d..b207e35f35cd746424d2f95aac69d9975b431a08 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js
@@ -154,14 +154,10 @@ function shouldThrowDOMException(f, ec)
}
createElement('x');
-shouldThrowDOMException(function() {
- element.classList.contains('');
-}, DOMException.SYNTAX_ERR);
+shouldNotThrow('element.classList.contains("")');
createElement('x y');
-shouldThrowDOMException(function() {
- element.classList.contains('x y');
-}, DOMException.INVALID_CHARACTER_ERR);
+shouldNotThrow('element.classList.contains("x y")');
createElement('');
shouldThrowDOMException(function() {

Powered by Google App Engine
This is Rietveld 408576698