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. |