| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <style> | 4 <style> |
| 5 | 5 |
| 6 body { | 6 body { |
| 7 margin: 0; | 7 margin: 0; |
| 8 } | 8 } |
| 9 | 9 |
| 10 iframe { | 10 iframe { |
| 11 position: absolute; | 11 position: absolute; |
| 12 left: 83px; | 12 left: 83px; |
| 13 top: 53px; | 13 top: 53px; |
| 14 width: 200px; | 14 width: 200px; |
| 15 height: 200px; | 15 height: 200px; |
| 16 } | 16 } |
| 17 | 17 |
| 18 </style> | 18 </style> |
| 19 | 19 |
| 20 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 20 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 21 <script src="../../../http/tests/inspector/elements-test.js"></script> | 21 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 22 <script src="../../../http/tests/inspector/console-test.js"></script> | 22 <script src="../../../http/tests/inspector/console-test.js"></script> |
| 23 <script> | 23 <script> |
| 24 | 24 |
| 25 function onload() | 25 function onload() |
| 26 { | 26 { |
| 27 if (window.internals) | 27 if (window.internals) |
| 28 window.internals.setPageScaleFactor(2); | 28 window.internals.setPageScaleFactor(2); |
| 29 window.scrollTo(1000, 1000); | 29 // Fully scroll the visual viewport. |
| 30 internals.setVisualViewportOffset(1000, 1000); |
| 30 runTest(); | 31 runTest(); |
| 31 } | 32 } |
| 32 | 33 |
| 33 function test() | 34 function test() |
| 34 { | 35 { |
| 35 InspectorTest.dumpInspectorHighlightJSON("div", InspectorTest.completeTest.b
ind(InspectorTest)); | 36 InspectorTest.dumpInspectorHighlightJSON("div", InspectorTest.completeTest.b
ind(InspectorTest)); |
| 36 } | 37 } |
| 37 | 38 |
| 38 </script> | 39 </script> |
| 39 </head> | 40 </head> |
| 40 | 41 |
| 41 <body onload="onload()"> | 42 <body onload="onload()"> |
| 42 <iframe id="scale-iframe" src="resources/highlight-node-scaled-iframe.html"></if
rame> | 43 <iframe id="scale-iframe" src="resources/highlight-node-scaled-iframe.html"></if
rame> |
| 43 </body> | 44 </body> |
| 44 </html> | 45 </html> |
| OLD | NEW |