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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/css-rule-hover-highlights-selectors.html

Issue 2182373002: DevTools: fix inspector/elements/css-rule-hover-highlights-selectors.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <style> 5 <style>
6 .border { 6 .border {
7 border: 1px solid black; 7 border: 1px solid black;
8 } 8 }
9 </style> 9 </style>
10 <script> 10 <script>
(...skipping 24 matching lines...) Expand all
35 35
36 function onSelected() 36 function onSelected()
37 { 37 {
38 resetHighlightCount(onHighlightCountReset); 38 resetHighlightCount(onHighlightCountReset);
39 } 39 }
40 40
41 function onHighlightCountReset() 41 function onHighlightCountReset()
42 { 42 {
43 var section = InspectorTest.firstMatchedStyleSection(); 43 var section = InspectorTest.firstMatchedStyleSection();
44 section._highlight(); 44 section._highlight();
45 testRunner.layoutAndPaintAsyncThen(onHighlighted); 45 InspectorTest.waitForOverlayRepaint(onHighlighted);
46 } 46 }
47 47
48 function onHighlighted() 48 function onHighlighted()
49 { 49 {
50 dumpHighlightCount(next); 50 dumpHighlightCount(next);
51 } 51 }
52 }, 52 },
53 53
54 function testShadowDOMNodeSelection(next) 54 function testShadowDOMNodeSelection(next)
55 { 55 {
56 InspectorTest.selectNodeAndWaitForStyles("inspected-shadow", onSelec ted); 56 InspectorTest.selectNodeAndWaitForStyles("inspected-shadow", onSelec ted);
57 57
58 function onSelected() 58 function onSelected()
59 { 59 {
60 resetHighlightCount(onHighlightCountReset); 60 resetHighlightCount(onHighlightCountReset);
61 } 61 }
62 62
63 function onHighlightCountReset() 63 function onHighlightCountReset()
64 { 64 {
65 var section = InspectorTest.firstMatchedStyleSection(); 65 var section = InspectorTest.firstMatchedStyleSection();
66 section._highlight(); 66 section._highlight();
67 testRunner.layoutAndPaintAsyncThen(onHighlighted); 67 InspectorTest.waitForOverlayRepaint(onHighlighted);
68 } 68 }
69 69
70 function onHighlighted() 70 function onHighlighted()
71 { 71 {
72 dumpHighlightCount(next); 72 dumpHighlightCount(next);
73 } 73 }
74 }, 74 },
75 ]); 75 ]);
76 76
77 function drawHighlightProxy() 77 function drawHighlightProxy()
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 129 }
130 </style> 130 </style>
131 <div class="bck">1st</div> 131 <div class="bck">1st</div>
132 <div class="bck">2nd</div> 132 <div class="bck">2nd</div>
133 <div class="bck">3rd</div> 133 <div class="bck">3rd</div>
134 <div class="bck">4th</div> 134 <div class="bck">4th</div>
135 <div class="bck" id="fifth">5th</div> 135 <div class="bck" id="fifth">5th</div>
136 </template> 136 </template>
137 </body> 137 </body>
138 </html> 138 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698