| 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 | 5 |
| 6 <style> | 6 <style> |
| 7 .container { | 7 .container { |
| 8 font-weight: bold | 8 font-weight: bold |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weigh
t"); | 23 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weigh
t"); |
| 24 treeItem.applyStyleText("font-weight: normal", true, false); | 24 treeItem.applyStyleText("font-weight: normal", true, false); |
| 25 InspectorTest.waitForStyles("container", step2); | 25 InspectorTest.waitForStyles("container", step2); |
| 26 } | 26 } |
| 27 | 27 |
| 28 function step2() | 28 function step2() |
| 29 { | 29 { |
| 30 InspectorTest.addResult("After changing property"); | 30 InspectorTest.addResult("After changing property"); |
| 31 InspectorTest.dumpSelectedElementStyles(true); | 31 InspectorTest.dumpSelectedElementStyles(true); |
| 32 | 32 |
| 33 WebInspector.domModel.undo(); | 33 InspectorTest.domModel.undo(); |
| 34 InspectorTest.waitForStyles("container", step3); | 34 InspectorTest.waitForStyles("container", step3); |
| 35 } | 35 } |
| 36 | 36 |
| 37 function step3() | 37 function step3() |
| 38 { | 38 { |
| 39 InspectorTest.addResult("After undo"); | 39 InspectorTest.addResult("After undo"); |
| 40 InspectorTest.dumpSelectedElementStyles(true); | 40 InspectorTest.dumpSelectedElementStyles(true); |
| 41 | 41 |
| 42 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weigh
t"); | 42 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weigh
t"); |
| 43 treeItem.applyStyleText("font-weight: normal", true, false); | 43 treeItem.applyStyleText("font-weight: normal", true, false); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 57 <body onload="runTest()"> | 57 <body onload="runTest()"> |
| 58 <p> | 58 <p> |
| 59 Tests that perform-undo-perform of the mergeable action does not crash. | 59 Tests that perform-undo-perform of the mergeable action does not crash. |
| 60 </p> | 60 </p> |
| 61 | 61 |
| 62 <div id="container" class="container"></div> | 62 <div id="container" class="container"></div> |
| 63 <div id="other" class="container"></div> | 63 <div id="other" class="container"></div> |
| 64 | 64 |
| 65 </body> | 65 </body> |
| 66 </html> | 66 </html> |
| OLD | NEW |