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

Unified Diff: LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html

Issue 360463005: Add [TypeChecking=Interface] on various methods in Document.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html » ('j') | Source/core/dom/Document.idl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
diff --git a/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html b/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
index 6e8f7e3e4f115086ac8627bea3f60f9063a74370..3852d1866ad1effe07357f1ee29329eea24226c4 100644
--- a/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
+++ b/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
@@ -41,10 +41,10 @@ test(function ()
test(function ()
{
assert_throws(new TypeError(), function () { document.createNodeIterator(); });
- assert_throws('NOT_SUPPORTED_ERR', function () { document.createNodeIterator(null); });
- assert_throws('NOT_SUPPORTED_ERR', function () { document.createNodeIterator(undefined); });
- assert_throws('NOT_SUPPORTED_ERR', function () { document.createNodeIterator(new Object()); });
- assert_throws('NOT_SUPPORTED_ERR', function () { document.createNodeIterator(1); });
+ assert_throws(new TypeError(), function () { document.createNodeIterator(null); });
sof 2014/06/27 12:11:08 It's consistent with the above, but the 'new' is r
+ assert_throws(new TypeError(), function () { document.createNodeIterator(undefined); });
+ assert_throws(new TypeError(), function () { document.createNodeIterator(new Object()); });
+ assert_throws(new TypeError(), function () { document.createNodeIterator(1); });
}, 'Give an invalid root node to document.createNodeIterator().');
// |expected| should be an object indicating the expected type of node.
« no previous file with comments | « no previous file | LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html » ('j') | Source/core/dom/Document.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698