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

Side by Side 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: Add test 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <script>
3 onload = function () {
4 var testElement = document.querySelector('#test');
5 var i=0;
6 testElement.addEventListener('DOMSubtreeModified', function() { i++; });
7 testElement.textContent = "new";
8 document.body.textContent = (i == 1) ? "PASS" : "FAIL: i=" + i;
9 }
10 </script>
11 <div id="test">old</div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698