3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/elements-test.js"></script>
5 <script src=
"edit-dom-test.js"></script>
10 InspectorTest
.runTestSuite([
11 function testSetUp(next
)
13 InspectorTest
.expandElementsTree(next
);
16 function selectNode(next
)
18 InspectorTest
.selectNodeWithId("inspected", onNodeSelected
)
20 function onNodeSelected(node
)
22 var treeOutline
= InspectorTest
.firstElementsTreeOutline();
23 var treeElement
= treeOutline
.findTreeElement(node
);
24 treeElement
.toggleEditAsHTML();
25 InspectorTest
.addSniffer(WebInspector
.ElementsTreeOutline
.prototype, "setMultilineEditing", next
);
29 function switchPanels(next
)
31 WebInspector
.inspectorView
.showPanel("sources")
35 function onError(error
)
37 InspectorTest
.addResult("FAILURE: exception caught while switching panels.");
38 InspectorTest
.completeTest();
47 <body onload=
"runTest()">
49 Verifies inspector doesn't break when switching panels while editing as HTML. crbug.com/
485457
53 <div id=
"inspected">Inspected Node
</div>