3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
10 for (var i
= 0; i
< 100; ++i
)
19 InspectorTest
.expandConsoleMessages(onConsoleMessageExpanded
);
21 function onConsoleMessageExpanded()
23 var messages
= WebInspector
.ConsolePanel
._view()._visibleViewMessages
;
24 for (var i
= 0; i
< messages
.length
; ++i
) {
25 var message
= messages
[i
];
26 var node
= message
.contentElement();
27 for (var node
= message
.contentElement(); node
; node
= node
.traverseNextNode(message
.contentElement())) {
28 if (node
.treeElement
) {
29 onTreeElement(node
.treeElement
.firstChild());
36 function onTreeElement(treeElement
)
38 treeElement
._startEditing();
39 WebInspector
.ConsolePanel
._view()._viewport
.refresh();
40 InspectorTest
.addResult("After viewport refresh tree element remains in editing mode: " + !!treeElement
._prompt
);
41 InspectorTest
.completeTest();
48 <body onload=
"onload()">
50 Tests that expanded tree element is editable in console.