Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Attr / set-attr-value-no-DOMSubtreeModified.html
blob9df04e9823f05a7257a052f6120b0c72ae3086d0
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <div id="testDiv"></div>
4 <script>
5 description("Tests that setting Attr.value does not fire a DOMSubtreeModified event.");
7 var testDiv = document.getElementById("testDiv");
8 var wasDOMSubtreeModifiedFired = false;
9 testDiv.attributes[0].addEventListener("DOMSubtreeModified", function() {
10 wasDOMSubtreeModifiedFired = true;
11 }, false);
13 shouldBeFalse("wasDOMSubtreeModifiedFired");
14 testDiv.attributes[0].value = "testDiv2";
15 shouldBeFalse("wasDOMSubtreeModifiedFired");
16 </script>