OLD | NEW |
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 Loading... |
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> |
OLD | NEW |