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

Unified Diff: LayoutTests/fast/dom/TreeWalker/TreeWalker-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: rebased 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
Index: LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
diff --git a/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html b/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
index dfb449fdb57ea797db8de52a9cbde85449503769..e89838692e011176b3445a1bb9674e1daf8875c5 100644
--- a/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
+++ b/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
@@ -59,10 +59,10 @@ test(function ()
test(function ()
{
assert_throws(new TypeError(), function () { document.createTreeWalker(); });
- assert_throws('NOT_SUPPORTED_ERR', function () { document.createTreeWalker(null); });
- assert_throws('NOT_SUPPORTED_ERR', function () { document.createTreeWalker(undefined); });
- assert_throws('NOT_SUPPORTED_ERR', function () { document.createTreeWalker(new Object()); });
- assert_throws('NOT_SUPPORTED_ERR', function () { document.createTreeWalker(1); });
+ assert_throws(new TypeError(), function () { document.createTreeWalker(null); });
+ assert_throws(new TypeError(), function () { document.createTreeWalker(undefined); });
+ assert_throws(new TypeError(), function () { document.createTreeWalker(new Object()); });
+ assert_throws(new TypeError(), function () { document.createTreeWalker(1); });
}, 'Give an invalid root node to document.createTreeWalker().');
// |expected| should be an object indicating the expected type of node.
« no previous file with comments | « LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html ('k') | LayoutTests/fast/dom/importNode-null-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698