Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / beforeload / link-before-load.html
1 <html>
2 <head>
3 <style>
4 .block {
5   width: 100px;
6   height: 100px;
7   background-color: green;
8 }
9 </style>
10 <link onbeforeload="return false" rel="stylesheet" href="resources/fail.css">
11 <script src="resources/print.js"></script>
12 <script>
13 function test()
14 {
15     if (window.testRunner)
16         testRunner.dumpAsText();
17
18     if (document.getElementById('block').offsetWidth == 100)
19         print("PASS", "green");
20     else
21         print("FAIL", "red");
22 }
23 </script>
24 </head>
25 <body onload="test()">
26 <p>This page tests the beforeload event on link elements.  You should see the word PASS below underneath a green square.</p>
27 <hr>
28 <div id="block" class="block"></div>
29 <hr>
30 <div id="console"></div>