OLD | NEW |
1 <script> | 1 <script> |
2 if (window.testRunner) | 2 if (window.testRunner) { |
3 testRunner.dumpAsText(); | 3 testRunner.dumpAsText(); |
| 4 testRunner.waitUntilDone(); |
| 5 } |
4 | 6 |
5 function log(s) | 7 function log(s) |
6 { | 8 { |
7 if (window.testRunner) | 9 if (window.testRunner) |
8 alert(s); | 10 alert(s); |
9 else | 11 else |
10 logger.document.write('<p>' + s + '</p>'); | 12 logger.document.write('<p>' + s + '</p>'); |
11 } | 13 } |
12 | 14 |
13 function shouldBe(a, b) | 15 function shouldBe(a, b) |
(...skipping 18 matching lines...) Expand all Loading... |
32 name="frame" | 34 name="frame" |
33 src="javascript: | 35 src="javascript: |
34 top.log('This page tests whether an iframe correctly reports renderer-de
pendent values ' + | 36 top.log('This page tests whether an iframe correctly reports renderer-de
pendent values ' + |
35 'when executing a javascript: load. If the test passes, you\'ll
see a series of ' + | 37 'when executing a javascript: load. If the test passes, you\'ll
see a series of ' + |
36 '\'PASS\' messages below.\n' | 38 '\'PASS\' messages below.\n' |
37 ); | 39 ); |
38 top.shouldBe('frame.frameElement.width', 250); | 40 top.shouldBe('frame.frameElement.width', 250); |
39 top.shouldBe('frame.frameElement.clientWidth', 250); | 41 top.shouldBe('frame.frameElement.clientWidth', 250); |
40 top.shouldBe('frame.frameElement.height', 250); | 42 top.shouldBe('frame.frameElement.height', 250); |
41 top.shouldBe('frame.frameElement.clientHeight', 250); | 43 top.shouldBe('frame.frameElement.clientHeight', 250); |
| 44 |
| 45 testRunner.notifyDone(); |
42 " | 46 " |
43 > | 47 > |
44 </frameset> | 48 </frameset> |
45 </frameset> | 49 </frameset> |
OLD | NEW |