3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
6 function prepareForTest()
12 console
.log(anObject
);
15 //# sourceURL=console-copy-treeoutline.html
21 InspectorTest
.fixConsoleViewportDimensions(600, 200);
22 var consoleView
= WebInspector
.ConsolePanel
._view();
23 var viewport
= consoleView
._viewport
;
25 InspectorTest
.runTestSuite([
26 function testSelectAll(next
)
28 viewport
.forceScrollItemToBeFirst(0);
30 // Set some initial selection in console.
31 var base
= consoleView
.itemElement(0);
32 window
.getSelection().setBaseAndExtent(base
, 0, base
, 1);
34 // Try to select all messages.
35 document
.execCommand("selectAll");
37 var text
= viewport
._selectedText();
38 InspectorTest
.addResult("Selected text: " + text
);
45 <body onload=
"prepareForTest()">
46 <p>Tests that console copies tree outline messages properly.
</p>