Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / document-set-title-single-DOMSubtreeModified.html
blob509a32bd9bde7784665072d81667c8b4f44d2ed5
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.");
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>