4 <p>Tests that reparenting media elements also reparents ActiveDOMObject.
</p>
5 <iframe src=
"resources/media-frame.html"></iframe>
6 <script src=
"resources/activedomobject-test.js"></script>
10 window
.iframe
= document
.querySelector('iframe').contentDocument
;
12 log('Before Reparenting');
13 shouldBe('window.internals.activeDOMObjectCount(document)', 2);
14 shouldBe('window.internals.activeDOMObjectCount(iframe)', 3);
16 document
.body
.appendChild(window
.iframe
.querySelector('video'));
18 log('After Reparenting');
19 shouldBe('window.internals.activeDOMObjectCount(document)', 3);
20 shouldBe('window.internals.activeDOMObjectCount(iframe)', 2);