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); }); |
+ 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. |