| 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..02e016012428fc95251d7c085d23bd78d23599c5
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/Element/missing-arguments.html
|
| @@ -0,0 +1,33 @@
|
| +<!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()",
|
| + "setAttribute('example')",
|
| + "setAttributeNS()",
|
| + "setAttributeNS('http://example.com/')",
|
| + "setAttributeNS('http://example.com/', 'example')"
|
| +].forEach(function(expr)
|
| +{
|
| + shouldThrow("element." + expr);
|
| +});
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|