| 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 <style> | 5 <style> |
| 6 #inspected { | 6 #inspected { |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("
Enter")); | 38 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("
Enter")); |
| 39 | 39 |
| 40 // Update incrementally, do not commit. | 40 // Update incrementally, do not commit. |
| 41 treeElement.valueElement.textContent = "red"; | 41 treeElement.valueElement.textContent = "red"; |
| 42 treeElement.kickFreeFlowStyleEditForTest(); | 42 treeElement.kickFreeFlowStyleEditForTest(); |
| 43 InspectorTest.waitForStyleApplied(next); | 43 InspectorTest.waitForStyleApplied(next); |
| 44 }, | 44 }, |
| 45 | 45 |
| 46 function cancelEditing(next) | 46 function cancelEditing(next) |
| 47 { | 47 { |
| 48 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent(
"U+001B")); // Escape | 48 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent(
"Escape")); |
| 49 InspectorTest.waitForStyleApplied(next); | 49 InspectorTest.waitForStyleApplied(next); |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 function undoStyles(next) | 52 function undoStyles(next) |
| 53 { | 53 { |
| 54 InspectorTest.dumpSelectedElementStyles(true, false, true); | 54 InspectorTest.dumpSelectedElementStyles(true, false, true); |
| 55 InspectorTest.domModel.undo(); | 55 InspectorTest.domModel.undo(); |
| 56 InspectorTest.waitForStyles("inspected", next, true); | 56 InspectorTest.waitForStyles("inspected", next, true); |
| 57 }, | 57 }, |
| 58 | 58 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 70 <body onload="runTest()"> | 70 <body onload="runTest()"> |
| 71 <p> | 71 <p> |
| 72 Verifies that cancelling property value editing doesn't affect | 72 Verifies that cancelling property value editing doesn't affect |
| 73 undo stack. | 73 undo stack. |
| 74 </p> | 74 </p> |
| 75 | 75 |
| 76 <div id="inspected">Text</div> | 76 <div id="inspected">Text</div> |
| 77 | 77 |
| 78 </body> | 78 </body> |
| 79 </html> | 79 </html> |
| OLD | NEW |