| Index: third_party/WebKit/LayoutTests/fast/dom/Element/attr-param-typechecking.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/attr-param-typechecking.html b/third_party/WebKit/LayoutTests/fast/dom/Element/attr-param-typechecking.html
|
| index 75b268a7dfa66c41cd1db01b4c62796fe546c4e6..8034125791ed953303504c76eabbe525c9556691 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Element/attr-param-typechecking.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Element/attr-param-typechecking.html
|
| @@ -4,6 +4,25 @@
|
| <script src="../../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/attr-param-typechecking.js"></script>
|
| +<script>
|
| +description(
|
| +'This test checks whether passing wrong types to setAttributeNode causes a crash.'
|
| +);
|
| +
|
| +var element = document.createElement("input");
|
| +
|
| +shouldThrow('element.setAttributeNode("style");');
|
| +shouldThrow('element.setAttributeNode(null);');
|
| +shouldThrow('element.setAttributeNode(undefined);');
|
| +shouldThrow('element.setAttributeNode(new Object);');
|
| +shouldThrow('element.removeAttributeNode("style");');
|
| +shouldThrow('element.removeAttributeNode(null);');
|
| +shouldThrow('element.removeAttributeNode(undefined);');
|
| +shouldThrow('element.removeAttributeNode(new Object);');
|
| +shouldThrow('element.setAttributeNodeNS("style");');
|
| +shouldThrow('element.setAttributeNodeNS(null);');
|
| +shouldThrow('element.setAttributeNodeNS(undefined);');
|
| +shouldThrow('element.setAttributeNodeNS(new Object);');
|
| +</script>
|
| </body>
|
| </html>
|
|
|