Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Document / early-document-access.html
blob1db170e8cc23682f3e237674add4208e4cdc3fb4
1 <html>
2 <head>
3 <script>
4 function test() {
5 if (window.testRunner) {
6 testRunner.setCanOpenWindows();
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
11 newWindow = window.open('resources/early-document-access-popup.html');
12 if (newWindow) {
13 newWindow.document; // access the document
14 } else {
15 document.body.innerText = 'FAIL: window.open failed to make a window.';
16 if (window.testRunner)
17 testRunner.notifyDone();
21 function done() {
22 if (window.testRunner)
23 if (testRunner.windowCount() == 1)
24 testRunner.notifyDone();
25 else
26 setTimeout("done()", 100);
29 function pass() {
30 document.body.innerText = 'PASS';
31 newWindow.close();
32 done();
35 function fail() {
36 document.body.innerText = 'FAIL';
37 newWindow.close();
38 done();
40 </script>
41 </head>
42 <body onload="test()">
43 FAIL: TEST DID NOT RUN!
44 </body>
45 </html>