| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 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> | |
| 6 <script> | |
| 7 | |
| 8 function test() | |
| 9 { | |
| 10 InspectorTest.runTestSuite([ | |
| 11 function testSetUp(next) | |
| 12 { | |
| 13 InspectorTest.expandElementsTree(next); | |
| 14 }, | |
| 15 | |
| 16 function selectNode(next) | |
| 17 { | |
| 18 InspectorTest.selectNodeWithId("inspected", onNodeSelected) | |
| 19 | |
| 20 function onNodeSelected(node) | |
| 21 { | |
| 22 var treeOutline = InspectorTest.firstElementsTreeOutline(); | |
| 23 var treeElement = treeOutline.findTreeElement(node); | |
| 24 treeElement.toggleEditAsHTML(); | |
| 25 InspectorTest.addSniffer(WebInspector.ElementsTreeOutline.protot
ype, "setMultilineEditing", next); | |
| 26 } | |
| 27 }, | |
| 28 | |
| 29 function switchPanels(next) | |
| 30 { | |
| 31 WebInspector.inspectorView.showPanel("sources") | |
| 32 .then(next) | |
| 33 .catch(onError); | |
| 34 | |
| 35 function onError(error) | |
| 36 { | |
| 37 InspectorTest.addResult("FAILURE: exception caught while switchi
ng panels."); | |
| 38 InspectorTest.completeTest(); | |
| 39 } | |
| 40 } | |
| 41 ]); | |
| 42 } | |
| 43 | |
| 44 </script> | |
| 45 </head> | |
| 46 | |
| 47 <body onload="runTest()"> | |
| 48 <p> | |
| 49 Verifies inspector doesn't break when switching panels while editing as HTML. cr
bug.com/485457 | |
| 50 </p> | |
| 51 | |
| 52 <div> | |
| 53 <div id="inspected">Inspected Node</div> | |
| 54 </div> | |
| 55 </body> | |
| 56 </html> | |
| OLD | NEW |