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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html

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/HTMLOutputElement/dom-token-list.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html
index 8b88878bf98f3549764532e2f1110c61cbf7aa30..7d7d70c52e7b59adec6848ebc0a4440628bac356 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html
@@ -145,14 +145,10 @@ function shouldThrowDOMException(f, ec)
}
createElement('x');
-shouldThrowDOMException(function() {
- element.htmlFor.contains('');
-}, DOMException.SYNTAX_ERR);
+shouldNotThrow('element.htmlFor.contains("")');
createElement('x y');
-shouldThrowDOMException(function() {
- element.htmlFor.contains('x y');
-}, DOMException.INVALID_CHARACTER_ERR);
+shouldNotThrow('element.htmlFor.contains("x y")');
createElement('');
shouldThrowDOMException(function() {

Powered by Google App Engine
This is Rietveld 408576698