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

Side by Side Diff: LayoutTests/inspector/console/console-search.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() 6 function populateConsoleWithMessages()
7 { 7 {
8 console.log("FIRST MATCH, SECOND MATCH"); 8 console.log("FIRST MATCH, SECOND MATCH");
9 for (var i = 0; i < 200; ++i) 9 for (var i = 0; i < 200; ++i)
10 console.log("Message #" + i); 10 console.log("Message #" + i);
11 var a = {}; 11 var a = {};
12 for (var i = 0; i < 200; ++i) 12 for (var i = 0; i < 200; ++i)
13 a["field_" + i] = "value #" + i; 13 a["field_" + i] = "value #" + i;
14 console.dir(a); 14 console.dir(a);
15 console.log("LAST MATCH"); 15 console.log("LAST MATCH");
16 runTest(); 16 runTest();
17 } 17 }
18 //# sourceURL=console-search.html
19 </script>
18 20
21 <script>
19 function test() 22 function test()
20 { 23 {
21 function addResult(result) 24 function addResult(result)
22 { 25 {
23 viewport.refresh(); 26 viewport.refresh();
24 InspectorTest.addResult(result); 27 InspectorTest.addResult(result);
25 } 28 }
26 29
27 function setQuery(text, isRegex, caseSensitive, callback) 30 function setQuery(text, isRegex, caseSensitive, callback)
28 { 31 {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 ]); 232 ]);
230 } 233 }
231 </script> 234 </script>
232 </head> 235 </head>
233 <body onload="populateConsoleWithMessages()"> 236 <body onload="populateConsoleWithMessages()">
234 <p> 237 <p>
235 Tests console search. 238 Tests console search.
236 </p> 239 </p>
237 </body> 240 </body>
238 </html> 241 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698