2 <title>document title and DOMSubtreeModified
</title>
3 <script src=
"../../resources/js-test.js"></script>
6 description("On setting document.title, only one DOMSubtreeModified event is created.");
8 var titleElement
= document
.documentElement
.firstChild
.firstChild
;
10 titleElement
.addEventListener('DOMSubtreeModified', function() { i
++; });
11 document
.title
= "new";
12 shouldBeEqualToString("document.title", "new");
13 shouldBeTrue("i == 1");