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

Side by Side Diff: LayoutTests/inspector/elements/highlight-node-scroll.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 <html> 1 <html>
2 <head> 2 <head>
3 3
4 <style> 4 <style>
5 5
6 body { 6 body {
7 width: 2000px; 7 width: 2000px;
8 height: 2000px; 8 height: 2000px;
9 background-color: grey; 9 background-color: grey;
10 } 10 }
(...skipping 26 matching lines...) Expand all
37 { 37 {
38 window.scrollBy(50, 100); 38 window.scrollBy(50, 100);
39 scrollingContainer = document.getElementById("scrollingContainer"); 39 scrollingContainer = document.getElementById("scrollingContainer");
40 scrollingContainer.scrollTop = 50; 40 scrollingContainer.scrollTop = 50;
41 scrollingContainer.scrollLeft = 60; 41 scrollingContainer.scrollLeft = 60;
42 runTest(); 42 runTest();
43 } 43 }
44 44
45 function test() 45 function test()
46 { 46 {
47 function nodeSelected2(node) 47 InspectorTest.selectNodeWithId("inspectedElement1", nodeSelected1);
48
49 function nodeSelected1(node)
48 { 50 {
49 RuntimeAgent.evaluate("dumpInspectorHighlightRects()", InspectorTest.com pleteTest); 51 InspectorTest.dumpInspectorHighlight(node, testNode2);
50 } 52 }
51 53
52 function testNode2() 54 function testNode2()
53 { 55 {
54 InspectorTest.selectNodeWithId("inspectedElement2", nodeSelected2); 56 InspectorTest.selectNodeWithId("inspectedElement2", nodeSelected2);
55 } 57 }
56 58
57 function nodeSelected1(node) 59 function nodeSelected2(node)
58 { 60 {
59 RuntimeAgent.evaluate("dumpInspectorHighlightRects()", testNode2); 61 InspectorTest.dumpInspectorHighlight(node, InspectorTest.completeTest.bi nd(InspectorTest));
60 } 62 }
61
62 InspectorTest.selectNodeWithId("inspectedElement1", nodeSelected1);
63 } 63 }
64 64
65 </script> 65 </script>
66 </head> 66 </head>
67 67
68 <body onload="onload()"> 68 <body onload="onload()">
69 69
70 <div id="inspectedElement1" class="inspected"></div> 70 <div id="inspectedElement1" class="inspected"></div>
71 71
72 <div id="scrollingContainer"> 72 <div id="scrollingContainer">
73 <div id="inspectedElement2" class="inspected"></div> 73 <div id="inspectedElement2" class="inspected"></div>
74 </div> 74 </div>
75 75
76 <p id="description">This test verifies the position and size of the highlight re ctangles overlayed on an inspected div in the scrolled view.</p> 76 <p id="description">This test verifies the position and size of the highlight re ctangles overlayed on an inspected div in the scrolled view.</p>
77 77
78 </body> 78 </body>
79 </html> 79 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/highlight-node-scaled.html ('k') | LayoutTests/inspector/elements/highlight-svg-root.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698