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

Side by Side Diff: LayoutTests/fast/dom/document-set-title-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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>document title and DOMSubtreeModified</title>
3 <script src="../../resources/js-test.js"></script>
4 <body>
5 <script>
6 description("On setting document.title, only one DOMSubtreeModified event is created.");
7
8 var titleElement = document.documentElement.firstChild.firstChild;
9 var i=0;
10 titleElement.addEventListener('DOMSubtreeModified', function() { i++; });
11 document.title = "new";
12 shouldBeEqualToString("document.title", "new");
13 shouldBeTrue("i == 1");
14 </script>
15 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698