Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / out-of-document-iframe-has-child-frame.html
blob9a033edaef924292043a04b361b927bf72e012db
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <div id="main"/>
7 <script>
8 description("This tests that several ways of making an iframe that isn't inserted into a document tree"
9 + " but has a child frame will fail.");
11 main = document.getElementById("main");
13 try {
14 container = main.appendChild(document.createElement("div"));
15 helperFrame = container.appendChild(document.createElement("iframe"));
16 targetFrame1 = document.createElement("iframe");
18 helperFrame.contentWindow.onunload = function() {
19 container.insertBefore(targetFrame1, helperFrame);
22 main.removeChild(container);
23 } catch (e) { }
24 shouldBeTrue("targetFrame1.contentWindow == undefined");
26 try {
27 container = main.appendChild(document.createElement("div"));
28 helperElement = container.appendChild(document.createElement("input"));
29 helperElement.focus();
30 targetFrame2 = document.createElement("iframe");
32 helperElement.onblur = function() {
33 container.appendChild(targetFrame2);
36 main.removeChild(container);
37 } catch (e) { }
38 shouldBeTrue("targetFrame2.contentWindow == undefined");
40 try {
41 container = document.createElement("div");
42 targetFrame3 = container.appendChild(document.createElement("iframe"));
43 helperFrame = targetFrame3.appendChild(document.createElement("iframe"));
44 helperFrame.src = "javascript:top.container.removeChild(top.targetFrame3)";
45 document.body.appendChild(container);
46 } catch (e) { }
47 shouldBeTrue("targetFrame3.contentWindow == undefined");
49 isSuccessfullyParsed();
50 </script>
51 </body>
52 </html>