OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 | 4 |
5 <style> | 5 <style> |
6 | 6 |
7 body { | 7 body { |
8 margin: 0; | 8 margin: 0; |
9 } | 9 } |
10 #svg-root { | 10 #svg-root { |
11 margin: 5px; | 11 margin: 5px; |
12 border: solid 10px aqua; | 12 border: solid 10px aqua; |
13 padding: 15px; | 13 padding: 15px; |
14 background-color: blue; | 14 background-color: blue; |
15 } | 15 } |
16 | 16 |
17 </style> | 17 </style> |
18 | 18 |
19 <script src="../../http/tests/inspector/inspector-test.js"></script> | 19 <script src="../../http/tests/inspector/inspector-test.js"></script> |
20 <script src="../../http/tests/inspector/elements-test.js"></script> | 20 <script src="../../http/tests/inspector/elements-test.js"></script> |
21 <script> | 21 <script> |
22 | 22 |
23 function test() | 23 function test() |
24 { | 24 { |
25 function nodeSelected(node) | 25 function nodeSelected(node) |
26 { | 26 { |
27 RuntimeAgent.evaluate("dumpInspectorHighlightRects()", InspectorTest.com
pleteTest); | 27 InspectorTest.dumpInspectorHighlight(node, InspectorTest.completeTest.bi
nd(InspectorTest)); |
28 } | 28 } |
29 | 29 |
30 InspectorTest.selectNodeWithId("svg-root", nodeSelected); | 30 InspectorTest.selectNodeWithId("svg-root", nodeSelected); |
31 } | 31 } |
32 | 32 |
33 </script> | 33 </script> |
34 </head> | 34 </head> |
35 | 35 |
36 <body onload="runTest()"> | 36 <body onload="runTest()"> |
37 | 37 |
38 <svg id="svg-root" width="100" height="100" viewbox="0 0 50 50"></svg> | 38 <svg id="svg-root" width="100" height="100" viewbox="0 0 50 50"></svg> |
39 <p id="description">This test verifies the position and size of the highlight re
ctangles overlayed on an SVG root element.</p> | 39 <p id="description">This test verifies the position and size of the highlight re
ctangles overlayed on an SVG root element.</p> |
40 | 40 |
41 </body> | 41 </body> |
42 </html> | 42 </html> |
OLD | NEW |