| 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.showPanel("elements"); | 9 WebInspector.showPanel("elements"); |
| 10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); | 10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Commit editing. | 28 // Commit editing. |
| 29 treeElement.valueElement.textContent = "green"; | 29 treeElement.valueElement.textContent = "green"; |
| 30 treeElement.valueElement.firstChild.select(); | 30 treeElement.valueElement.firstChild.select(); |
| 31 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Ent
er")); | 31 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Ent
er")); |
| 32 InspectorTest.runAfterPendingDispatches(step2); | 32 InspectorTest.runAfterPendingDispatches(step2); |
| 33 } | 33 } |
| 34 | 34 |
| 35 function step2() | 35 function step2() |
| 36 { | 36 { |
| 37 if (!WebInspector.isEditingAnyField()) { |
| 38 InspectorTest.addResult("No new property editor active!"); |
| 39 InspectorTest.completeTest(); |
| 40 } |
| 37 InspectorTest.selectNodeWithId("other"); | 41 InspectorTest.selectNodeWithId("other"); |
| 38 InspectorTest.runAfterPendingDispatches(step3); | 42 InspectorTest.runAfterPendingDispatches(step3); |
| 39 } | 43 } |
| 40 | 44 |
| 41 function step3() | 45 function step3() |
| 42 { | 46 { |
| 43 InspectorTest.selectNodeAndWaitForStyles("inspected", step4); | 47 InspectorTest.selectNodeAndWaitForStyles("inspected", step4); |
| 44 } | 48 } |
| 45 | 49 |
| 46 function step4() | 50 function step4() |
| (...skipping 10 matching lines...) Expand all Loading... |
| 57 <body onload="runTest()"> | 61 <body onload="runTest()"> |
| 58 <p> | 62 <p> |
| 59 Tests that editing is canceled properly after incremental editing. | 63 Tests that editing is canceled properly after incremental editing. |
| 60 </p> | 64 </p> |
| 61 | 65 |
| 62 <div id="inspected" style="color: red">Text</div> | 66 <div id="inspected" style="color: red">Text</div> |
| 63 <div id="other"></div> | 67 <div id="other"></div> |
| 64 | 68 |
| 65 </body> | 69 </body> |
| 66 </html> | 70 </html> |
| OLD | NEW |