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

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

Issue 1218873002: Layout tests: unflake console tests that race with the main resource load. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 - 1; ++i) 8 for (var i = 0; i < count - 1; ++i)
9 console.log("Message #" + i); 9 console.log("Message #" + i);
10 console.log("hello %cworld", "color: blue"); 10 console.log("hello %cworld", "color: blue");
11 } 11 }
12 //# sourceURL=console-viewport-selection.html
13 </script>
12 14
15 <script>
13 function test() 16 function test()
14 { 17 {
15 InspectorTest.fixConsoleViewportDimensions(600, 200); 18 InspectorTest.fixConsoleViewportDimensions(600, 200);
16 var consoleView = WebInspector.ConsolePanel._view(); 19 var consoleView = WebInspector.ConsolePanel._view();
17 var viewport = consoleView._viewport; 20 var viewport = consoleView._viewport;
18 const minimumViewportMessagesCount = 10; 21 const minimumViewportMessagesCount = 10;
19 const messagesCount = 150; 22 const messagesCount = 150;
20 const middleMessage = messagesCount / 2; 23 const middleMessage = messagesCount / 2;
21 var viewportMessagesCount; 24 var viewportMessagesCount;
22 25
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 272 }
270 } 273 }
271 </script> 274 </script>
272 </head> 275 </head>
273 <body onload="runTest()"> 276 <body onload="runTest()">
274 <p> 277 <p>
275 Tests that console viewport handles selection properly. 278 Tests that console viewport handles selection properly.
276 </p> 279 </p>
277 </body> 280 </body>
278 </html> 281 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698