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 #container { | 9 #container { |
10 width: 400px; | 10 width: 400px; |
(...skipping 16 matching lines...) Expand all Loading... |
27 </style> | 27 </style> |
28 | 28 |
29 <script src="../../http/tests/inspector/inspector-test.js"></script> | 29 <script src="../../http/tests/inspector/inspector-test.js"></script> |
30 <script src="../../http/tests/inspector/elements-test.js"></script> | 30 <script src="../../http/tests/inspector/elements-test.js"></script> |
31 <script> | 31 <script> |
32 | 32 |
33 function test() | 33 function test() |
34 { | 34 { |
35 function nodeSelected(node) | 35 function nodeSelected(node) |
36 { | 36 { |
37 RuntimeAgent.evaluate("dumpInspectorHighlightRects()", InspectorTest.com
pleteTest); | 37 InspectorTest.dumpInspectorHighlight(node, InspectorTest.completeTest.bi
nd(InspectorTest)); |
38 } | 38 } |
39 | 39 |
40 InspectorTest.selectNodeWithId("inspectedElement", nodeSelected); | 40 InspectorTest.selectNodeWithId("inspectedElement", nodeSelected); |
41 } | 41 } |
42 | 42 |
43 </script> | 43 </script> |
44 </head> | 44 </head> |
45 | 45 |
46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
47 | 47 |
48 <div id="inspectedElement"></div> | 48 <div id="inspectedElement"></div> |
49 <p id="description">This test verifies the position and size of the highlight re
ctangles overlayed on an inspected div.</p> | 49 <p id="description">This test verifies the position and size of the highlight re
ctangles overlayed on an inspected div.</p> |
50 | 50 |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |