Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Node / textContent-single-DOMSubtreeModified.html
blobe87fb593c590878bde4b8837c6d93d2bfc5ad08e
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;
10 </script>
11 <div id="test">old</div>