OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 | 5 |
6 body { | 6 body { |
7 margin: 0; | 7 margin: 0; |
8 } | 8 } |
9 #svg-root { | 9 #svg-root { |
10 position: relative; | 10 position: relative; |
(...skipping 14 matching lines...) Expand all Loading... |
25 { | 25 { |
26 if (window.eventSender) | 26 if (window.eventSender) |
27 window.eventSender.zoomPageIn(); | 27 window.eventSender.zoomPageIn(); |
28 runTest(); | 28 runTest(); |
29 } | 29 } |
30 | 30 |
31 function test() | 31 function test() |
32 { | 32 { |
33 function nodeSelected(node) | 33 function nodeSelected(node) |
34 { | 34 { |
35 RuntimeAgent.evaluate("dumpInspectorHighlightRects()", InspectorTest.com
pleteTest); | 35 InspectorTest.dumpInspectorHighlight(node, InspectorTest.completeTest.bi
nd(InspectorTest)); |
36 } | 36 } |
37 | 37 |
38 InspectorTest.selectNodeWithId("svg-root", nodeSelected); | 38 InspectorTest.selectNodeWithId("svg-root", nodeSelected); |
39 } | 39 } |
40 | 40 |
41 </script> | 41 </script> |
42 </head> | 42 </head> |
43 <body onload="startTest()"> | 43 <body onload="startTest()"> |
44 <svg id="svg-root" width="100" height="200" viewbox="0 0 50 100"></svg> | 44 <svg id="svg-root" width="100" height="200" viewbox="0 0 50 100"></svg> |
45 <p id="description">This test verifies the position and size of the highlight re
ctangles overlayed on an SVG root element when the page is zoomed.</p> | 45 <p id="description">This test verifies the position and size of the highlight re
ctangles overlayed on an SVG root element when the page is zoomed.</p> |
(...skipping 22 matching lines...) Expand all Loading... |
68 content rect: | 68 content rect: |
69 left: (10 + 30 + 40 + 50) * 1.2 == 130 * 1.2 == 156 | 69 left: (10 + 30 + 40 + 50) * 1.2 == 130 * 1.2 == 156 |
70 top: (20 + 30 + 40 + 50) * 1.2 == 140 * 1.2 == 168 | 70 top: (20 + 30 + 40 + 50) * 1.2 == 140 * 1.2 == 168 |
71 width: (100) * 1.2 == 120 | 71 width: (100) * 1.2 == 120 |
72 height: (200) * 1.2 == 240 | 72 height: (200) * 1.2 == 240 |
73 | 73 |
74 --> | 74 --> |
75 <div id="console"></div> | 75 <div id="console"></div> |
76 </body> | 76 </body> |
77 </html> | 77 </html> |
OLD | NEW |