Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / reparent-in-unload-contentdocument.html
blob3b4906fae4e18bd3a0038fc264e4cd36568f2798
1 <!DOCTYPE html>
3 <script src="../../resources/js-test.js"></script>
5 <div id="a">
6 <div id="b">
7 </div>
8 </div>
10 <div id="c">
11 </div>
13 <script>
14 if (window.testRunner) {
15 testRunner.dumpAsText();
16 testRunner.dumpChildFramesAsText();
17 testRunner.waitUntilDone();
20 var frame = document.createElement('iframe');
21 var a = document.getElementById('a');
22 var b = document.getElementById('b');
23 var c = document.getElementById('c');
25 onload = function() {
26 b.appendChild(frame);
28 frame.onload = function() {
29 frame.contentDocument.body.innerHTML = 'Should be visible.';
32 frame.contentWindow.onunload = function() {
33 b.parentNode.removeChild(b);
34 shouldBeNull('frame.contentDocument');
35 c.appendChild(b);
36 shouldNotBe('frame.contentDocument', 'null');
37 isSuccessfullyParsed();
38 if (window.testRunner)
39 testRunner.notifyDone();
42 a.parentNode.removeChild(a);
44 </script>