Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified.html

Issue 452093003: Do not fire a DOMSubtreeModified event when Attr.value attribute is set (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698