| 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 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 startEditingAndDumpValue(WebInspector.Color.Format.HSL, "color", nex
t); | 50 startEditingAndDumpValue(WebInspector.Color.Format.HSL, "color", nex
t); |
| 51 }, | 51 }, |
| 52 | 52 |
| 53 function editHexAsRGB(next) | 53 function editHexAsRGB(next) |
| 54 { | 54 { |
| 55 startEditingAndDumpValue(WebInspector.Color.Format.RGB, "color", nex
t); | 55 startEditingAndDumpValue(WebInspector.Color.Format.RGB, "color", nex
t); |
| 56 }, | 56 }, |
| 57 | 57 |
| 58 function editNewProperty(next) | 58 function editNewProperty(next) |
| 59 { | 59 { |
| 60 var section = WebInspector.panels.elements.sidebarPanes.styles.secti
ons[0][1]; | 60 var section = WebInspector.inspectorView.panel("elements").sidebarPa
nes.styles.sections[0][1]; |
| 61 section.expand(); | 61 section.expand(); |
| 62 | 62 |
| 63 treeElement = section.addNewBlankProperty(0); | 63 treeElement = section.addNewBlankProperty(0); |
| 64 treeElement.startEditing(); | 64 treeElement.startEditing(); |
| 65 treeElement.nameElement.textContent = "border-color"; | 65 treeElement.nameElement.textContent = "border-color"; |
| 66 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("
Enter")); | 66 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("
Enter")); |
| 67 InspectorTest.runAfterPendingDispatches(callbackName); | 67 InspectorTest.runAfterPendingDispatches(callbackName); |
| 68 | 68 |
| 69 function callbackName() | 69 function callbackName() |
| 70 { | 70 { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 <body onload="runTest()"> | 126 <body onload="runTest()"> |
| 127 <p> | 127 <p> |
| 128 Tests that property value being edited uses the user-specified color format. | 128 Tests that property value being edited uses the user-specified color format. |
| 129 </p> | 129 </p> |
| 130 | 130 |
| 131 <div id="inspected1" style="border: 1px solid red">inspected1</div> | 131 <div id="inspected1" style="border: 1px solid red">inspected1</div> |
| 132 <div id="inspected2" style="color: #ffffee">inspected2</div> | 132 <div id="inspected2" style="color: #ffffee">inspected2</div> |
| 133 | 133 |
| 134 </body> | 134 </body> |
| 135 </html> | 135 </html> |
| OLD | NEW |