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