Index: LayoutTests/fast/dom/Element/missing-arguments.html |
diff --git a/LayoutTests/fast/dom/Element/missing-arguments.html b/LayoutTests/fast/dom/Element/missing-arguments.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fc4c2aa64688a900b49f923d3faad9cd0b0ea7d2 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/Element/missing-arguments.html |
@@ -0,0 +1,32 @@ |
+<!doctype html> |
+<html> |
+<head> |
+<script src="../../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+var element = document.createElementNS("http://example.com/", "example"); |
+[ |
+ "getAttribute()", |
+ "getAttributeNS()", |
+ "getAttributeNS('http://example.com/')", |
+ "getElementsByClassName()", |
+ "getElementsByTagName()", |
+ "getElementsByTagNameNS()", |
+ "getElementsByTagNameNS('http://example.com/')", |
+ "hasAttributeNS()", |
+ "hasAttributeNS('http://example.com/')", |
+ "removeAttribute()", |
+ "removeAttributeNS()", |
+ "removeAttributeNS('http://example.com/')", |
+ "setAttribute()", |
+ "setAttributeNS()", |
+ "setAttributeNS('http://example.com/')", |
+ "setAttributeNS('http://example.com/', 'example')" |
+].forEach(function(expr) |
+{ |
+ shouldThrow("element." + expr); |
+}); |
+</script> |
+</body> |
+</html> |