| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 WebInspector.inspectorView.showPanel("elements"); | 9 WebInspector.inspectorView.showPanel("elements"); |
| 10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); | 10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
| 11 | 11 |
| 12 var treeElement; | 12 var treeElement; |
| 13 var section; | 13 var section; |
| 14 | 14 |
| 15 function step1() | 15 function step1() |
| 16 { | 16 { |
| 17 InspectorTest.addResult("Before append:"); | 17 InspectorTest.addResult("Before append:"); |
| 18 InspectorTest.dumpSelectedElementStyles(true); | 18 InspectorTest.dumpSelectedElementStyles(true); |
| 19 section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][1
]; | 19 section = WebInspector.inspectorView.panel("elements").sidebarPanes.styl
es.sections[0][1]; |
| 20 section.expand(); | 20 section.expand(); |
| 21 | 21 |
| 22 // Create and increment. | 22 // Create and increment. |
| 23 treeElement = section.addNewBlankProperty(); | 23 treeElement = section.addNewBlankProperty(); |
| 24 treeElement.startEditing(); | 24 treeElement.startEditing(); |
| 25 treeElement.nameElement.textContent = "color"; | 25 treeElement.nameElement.textContent = "color"; |
| 26 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Ente
r")); | 26 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Ente
r")); |
| 27 | 27 |
| 28 // Update incrementally to a valid value. | 28 // Update incrementally to a valid value. |
| 29 treeElement.valueElement.textContent = "rgb("; | 29 treeElement.valueElement.textContent = "rgb("; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 <body onload="runTest()"> | 64 <body onload="runTest()"> |
| 65 <p> | 65 <p> |
| 66 Tests that adding an invalid property retains its syntax. | 66 Tests that adding an invalid property retains its syntax. |
| 67 </p> | 67 </p> |
| 68 | 68 |
| 69 <div id="inspected" style="font-size: 12px">Text</div> | 69 <div id="inspected" style="font-size: 12px">Text</div> |
| 70 <div id="other"></div> | 70 <div id="other"></div> |
| 71 | 71 |
| 72 </body> | 72 </body> |
| 73 </html> | 73 </html> |
| OLD | NEW |