OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script src="../../resources/run-after-display.js"></script> | 5 <script src="../../resources/run-after-display.js"></script> |
6 <script src="resources/link-highlight-helper.js"></script> | 6 <script src="resources/link-highlight-helper.js"></script> |
7 </head> | 7 </head> |
8 <body onLoad="runTest();"> | 8 <body onLoad="runTest();"> |
9 <iframe id="nestingFrame" src="resources/1-nested-frame-noncomposited.html" styl
e="position: relative; left: 10px; top: 10px; width: 450px; height: 150px; -webk
it-transform: translateZ(0);"></iframe> | 9 <iframe id="nestingFrame" src="resources/1-nested-frame-noncomposited.html" styl
e="position: relative; left: 10px; top: 10px; width: 450px; height: 150px; trans
form: translateZ(0);"></iframe> |
10 <div style="position: relative; left: 10px; top: 20px;"> | 10 <div style="position: relative; left: 10px; top: 20px;"> |
11 This test is successful if "Target Link" is covered by a green box with square c
orners, | 11 This test is successful if "Target Link" is covered by a green box with square c
orners, |
12 and the inner frame is partially scrolled. | 12 and the inner frame is partially scrolled. |
13 </div> | 13 </div> |
14 <script> | 14 <script> |
15 function runTest() { | 15 function runTest() { |
16 useMockHighlight(); | 16 useMockHighlight(); |
17 var nestingFrame = document.getElementById('nestingFrame'); | 17 var nestingFrame = document.getElementById('nestingFrame'); |
18 var targetFrame = nestingFrame.contentDocument.getElementById('targetFrame')
; | 18 var targetFrame = nestingFrame.contentDocument.getElementById('targetFrame')
; |
19 var clientRect = targetFrame.contentDocument.getElementById('targetLink').ge
tBoundingClientRect(); | 19 var clientRect = targetFrame.contentDocument.getElementById('targetLink').ge
tBoundingClientRect(); |
(...skipping 13 matching lines...) Expand all Loading... |
33 testRunner.notifyDone(); | 33 testRunner.notifyDone(); |
34 }); | 34 }); |
35 }); | 35 }); |
36 } else { | 36 } else { |
37 debug("This test requires DumpRenderTree."); | 37 debug("This test requires DumpRenderTree."); |
38 } | 38 } |
39 } | 39 } |
40 </script> | 40 </script> |
41 </body> | 41 </body> |
42 </html> | 42 </html> |
OLD | NEW |