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