3 <script src=
"../../resources/js-test.js"></script>
5 window
.jsTestIsAsync
= true;
6 description("Test for mutations to childList when setting document.title.");
9 shouldBe('mutations.length', '1');
10 shouldBe('mutations[0].type', '"childList"');
11 shouldBe('mutations[0].addedNodes.length', '1');
12 shouldBe('mutations[0].removedNodes.length', '1');
16 var titleElement
= document
.querySelector('title');
19 var observer
= new MutationObserver(function(mutations
) {
20 window
.mutations
= mutations
;
22 observer
.observe(titleElement
, { childList
: true });
23 document
.title
= "new";
25 setTimeout(finish
, 0);