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 3852d1866ad1effe07357f1ee29329eea24226c4..735a54a023f0bed1b292c58a900f3a9b5c2baf89 100644 |
--- a/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html |
+++ b/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html |
@@ -193,6 +193,14 @@ test(function () |
testIteratorForwardAndBackward(iterator, expectedAll); |
}); |
}, 'Test that the fourth argument (expandEntityReferences) is ignored.'); |
+ |
+test(function() { |
+ var nodeIterator = document.createNodeIterator(document.body, 42, null); |
+ assert_equals(nodeIterator.root, document.body); |
+ assert_equals(nodeIterator.referenceNode, document.body); |
+ assert_equals(nodeIterator.whatToShow, 42); |
+ assert_equals(nodeIterator.filter, null); |
+}, "Optional arguments to createNodeIterator should be optional (3 passed, null)."); |
</script> |
</body> |
</html> |