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

Unified Diff: LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html

Issue 688933002: Make textContent trigger single DOMSubtreeModified event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address comments Created 6 years, 1 month 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/Node/textContent-single-DOMSubtreeModified-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html
diff --git a/LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html b/LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html
new file mode 100644
index 0000000000000000000000000000000000000000..e87fb593c590878bde4b8837c6d93d2bfc5ad08e
--- /dev/null
+++ b/LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<script>
+onload = function () {
+ var testElement = document.querySelector('#test');
+ var i=0;
+ testElement.addEventListener('DOMSubtreeModified', function() { i++; });
+ testElement.textContent = "new";
+ document.body.textContent = (i == 1) ? "PASS" : "FAIL: i=" + i;
+}
+</script>
+<div id="test">old</div>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698