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

Side by Side Diff: LayoutTests/inspector/console/console-viewport-selection.html

Issue 354013002: DevTools: [Console] fix search to reveal matched messages (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline one more test Created 6 years, 5 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 <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/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 function populateConsoleWithMessages(count) 6 function populateConsoleWithMessages(count)
7 { 7 {
8 for (var i = 0; i < count; ++i) 8 for (var i = 0; i < count; ++i)
9 console.log("Message #" + i); 9 console.log("Message #" + i);
10 } 10 }
11 11
12 function test() 12 function test()
13 { 13 {
14 setTimeout(InspectorTest.completeTest.bind(InspectorTest), 2000);
15 var consoleView = WebInspector.ConsolePanel._view(); 14 var consoleView = WebInspector.ConsolePanel._view();
16 var viewport = consoleView._viewport; 15 var viewport = consoleView._viewport;
17 const minimumViewportMessagesCount = 10; 16 const minimumViewportMessagesCount = 10;
18 const messagesCount = 150; 17 const messagesCount = 150;
19 const middleMessage = messagesCount / 2; 18 const middleMessage = messagesCount / 2;
20 var testSuite = [ 19 var testSuite = [
21 function verifyViewportIsTallEnough(next) 20 function verifyViewportIsTallEnough(next)
22 { 21 {
23 viewport.invalidate(); 22 viewport.invalidate();
24 var viewportMessagesCount = viewport._lastVisibleIndex - viewport._f irstVisibleIndex; 23 var viewportMessagesCount = viewport._lastVisibleIndex - viewport._f irstVisibleIndex;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 229 }
231 } 230 }
232 </script> 231 </script>
233 </head> 232 </head>
234 <body onload="runTest()"> 233 <body onload="runTest()">
235 <p> 234 <p>
236 Tests that console viewport handles selection properly. 235 Tests that console viewport handles selection properly.
237 </p> 236 </p>
238 </body> 237 </body>
239 </html> 238 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698