Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / activedomobject / media.html
blob1482afadbeabedaea38b295accb5a6cd36f4d730
1 <!DOCTYPE HTML>
2 <html>
3 <body>
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>
7 <script>
8 function runTest()
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);
22 </script>
23 </body>
24 </html>