| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <style> | 4 <style> |
| 5 | 5 |
| 6 body { | 6 body { |
| 7 width: 2000px; | 7 width: 2000px; |
| 8 height: 2000px; | 8 height: 2000px; |
| 9 background-color: grey; | 9 background-color: grey; |
| 10 } | 10 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 { | 37 { |
| 38 window.scrollBy(50, 100); | 38 window.scrollBy(50, 100); |
| 39 scrollingContainer = document.getElementById("scrollingContainer"); | 39 scrollingContainer = document.getElementById("scrollingContainer"); |
| 40 scrollingContainer.scrollTop = 50; | 40 scrollingContainer.scrollTop = 50; |
| 41 scrollingContainer.scrollLeft = 60; | 41 scrollingContainer.scrollLeft = 60; |
| 42 runTest(); | 42 runTest(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 function test() | 45 function test() |
| 46 { | 46 { |
| 47 InspectorTest.selectNodeWithId("inspectedElement1", nodeSelected1); | 47 InspectorTest.dumpInspectorHighlightJSON("inspectedElement1", testNode2); |
| 48 | |
| 49 function nodeSelected1(node) | |
| 50 { | |
| 51 InspectorTest.dumpInspectorHighlight(node, testNode2); | |
| 52 } | |
| 53 | 48 |
| 54 function testNode2() | 49 function testNode2() |
| 55 { | 50 { |
| 56 InspectorTest.selectNodeWithId("inspectedElement2", nodeSelected2); | 51 InspectorTest.dumpInspectorHighlightJSON("inspectedElement2", InspectorT
est.completeTest.bind(InspectorTest)); |
| 57 } | |
| 58 | |
| 59 function nodeSelected2(node) | |
| 60 { | |
| 61 InspectorTest.dumpInspectorHighlight(node, InspectorTest.completeTest.bi
nd(InspectorTest)); | |
| 62 } | 52 } |
| 63 } | 53 } |
| 64 | 54 |
| 65 </script> | 55 </script> |
| 66 </head> | 56 </head> |
| 67 | 57 |
| 68 <body onload="onload()"> | 58 <body onload="onload()"> |
| 69 | 59 |
| 70 <div id="inspectedElement1" class="inspected"></div> | 60 <div id="inspectedElement1" class="inspected"></div> |
| 71 | 61 |
| 72 <div id="scrollingContainer"> | 62 <div id="scrollingContainer"> |
| 73 <div id="inspectedElement2" class="inspected"></div> | 63 <div id="inspectedElement2" class="inspected"></div> |
| 74 </div> | 64 </div> |
| 75 | 65 |
| 76 <p id="description">This test verifies the position and size of the highlight re
ctangles overlayed on an inspected div in the scrolled view.</p> | 66 <p id="description">This test verifies the position and size of the highlight re
ctangles overlayed on an inspected div in the scrolled view.</p> |
| 77 | 67 |
| 78 </body> | 68 </body> |
| 79 </html> | 69 </html> |
| OLD | NEW |