| Index: LayoutTests/fast/dom/Attr/update-attribute-node-null-value-no-crash.html
|
| diff --git a/LayoutTests/fast/dom/Attr/update-attribute-node-null-value-no-crash.html b/LayoutTests/fast/dom/Attr/update-attribute-node-null-value-no-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..af3a5a595858845d5d7244d0fa24d9aac7d0f5f9
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/Attr/update-attribute-node-null-value-no-crash.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<head>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| +description("Updating value of an attached Attr node having a null value");
|
| +
|
| +var element = document.createElement("div");
|
| +var attr = document.createAttribute("nullable");
|
| +shouldBeEmptyString("attr.value");
|
| +shouldBeNull("attr.value = null; attr.value");
|
| +shouldBeNull("element.setAttributeNode(attr);");
|
| +shouldBeNull("element.getAttribute('nullable');");
|
| +shouldBeEqualToString("attr.value = 'noCrash'; attr.value", "noCrash");
|
| +shouldBeEqualToString("element.getAttribute('nullable')", "noCrash");
|
| +shouldBeNull("attr.value = null; attr.value");
|
| +shouldBeNull("element.getAttribute('nullable')");
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|