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

Side by Side Diff: LayoutTests/inspector/console/console-copy-treeoutline.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 prepareForTest() 6 function prepareForTest()
7 { 7 {
8 var anObject = { 8 var anObject = {
9 foo: 1, 9 foo: 1,
10 bar: "string" 10 bar: "string"
11 }; 11 };
12 console.log(anObject); 12 console.log(anObject);
13 runTest(); 13 runTest();
14 } 14 }
15 //# sourceURL=console-copy-treeoutline.html
16 </script>
15 17
18 <script>
16 function test() 19 function test()
17 { 20 {
18 InspectorTest.fixConsoleViewportDimensions(600, 200); 21 InspectorTest.fixConsoleViewportDimensions(600, 200);
19 var consoleView = WebInspector.ConsolePanel._view(); 22 var consoleView = WebInspector.ConsolePanel._view();
20 var viewport = consoleView._viewport; 23 var viewport = consoleView._viewport;
21 24
22 InspectorTest.runTestSuite([ 25 InspectorTest.runTestSuite([
23 function testSelectAll(next) 26 function testSelectAll(next)
24 { 27 {
25 viewport.forceScrollItemToBeFirst(0); 28 viewport.forceScrollItemToBeFirst(0);
(...skipping 10 matching lines...) Expand all
36 next(); 39 next();
37 } 40 }
38 ]); 41 ]);
39 } 42 }
40 </script> 43 </script>
41 </head> 44 </head>
42 <body onload="prepareForTest()"> 45 <body onload="prepareForTest()">
43 <p>Tests that console copies tree outline messages properly.</p> 46 <p>Tests that console copies tree outline messages properly.</p>
44 </body> 47 </body>
45 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698