Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: LayoutTests/inspector/elements/highlight-svg-root-zoomed.html

Issue 257873002: DevTools: do not use internals for highlight testing, use protocol instead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/highlight-svg-root.html ('k') | Source/core/inspector/InspectorController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698