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

Side by Side Diff: LayoutTests/inspector/elements/highlight-svg-root.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 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698