Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / iframe-access-screen-of-deleted.html
blob35f57332bde9dfee37ed4aadb5fa009c54e932c9
1 <html>
2 <head>
3 <script>
4 function accessAttributes(s) {
5 var value = 0;
6 value = s.height;
7 value = s.width;
8 value = s.colorDepth;
9 value = s.pixelDepth;
10 value = s.availLeft;
11 value = s.availTop;
12 value = s.availHeight;
13 value = s.availWidth;
16 function runTests() {
17 if (window.testRunner)
18 testRunner.dumpAsText();
20 var f = document.getElementById('theframe');
21 var s = f.contentWindow.screen;
22 accessAttributes(s);
24 // Now remove and check that we don't crash.
25 f.parentNode.removeChild(f);
26 accessAttributes(s);
28 </script>
29 </head>
30 <iframe id="theframe" src="resources/red.html"></iframe>
31 <body onload="runTests()">
32 <div>
33 This tests that accessing screen attributes doesn't crash even if containing frame is removed from the parent.
34 </div>
35 </body>
36 </html>