Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-edit-expanded-tree.html
blob8a5bdccbc1c04935ae7e665717810a3a78231e5d
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
7 function onload()
9 var a = {};
10 for (var i = 0; i < 100; ++i)
11 a[i] = i;
12 console.dir(a);
14 runTest();
17 function test()
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());
30 return;
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();
45 </script>
46 </head>
48 <body onload="onload()">
49 <p>
50 Tests that expanded tree element is editable in console.
51 </p>
53 </body>
54 </html>