Index: LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified.html |
diff --git a/LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified.html b/LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9df04e9823f05a7257a052f6120b0c72ae3086d0 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<div id="testDiv"></div> |
+<script> |
+ description("Tests that setting Attr.value does not fire a DOMSubtreeModified event."); |
+ |
+ var testDiv = document.getElementById("testDiv"); |
+ var wasDOMSubtreeModifiedFired = false; |
+ testDiv.attributes[0].addEventListener("DOMSubtreeModified", function() { |
+ wasDOMSubtreeModifiedFired = true; |
+ }, false); |
+ |
+ shouldBeFalse("wasDOMSubtreeModifiedFired"); |
+ testDiv.attributes[0].value = "testDiv2"; |
+ shouldBeFalse("wasDOMSubtreeModifiedFired"); |
+</script> |