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 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); | 9 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 function step3() | 23 function step3() |
24 { | 24 { |
25 InspectorTest.addResult("After adding new rule:"); | 25 InspectorTest.addResult("After adding new rule:"); |
26 InspectorTest.dumpSelectedElementStyles(true, false, true); | 26 InspectorTest.dumpSelectedElementStyles(true, false, true); |
27 printStyleSheetAndCall(step4); | 27 printStyleSheetAndCall(step4); |
28 } | 28 } |
29 | 29 |
30 function step4() | 30 function step4() |
31 { | 31 { |
32 WebInspector.domModel.undo(); | 32 InspectorTest.domModel.undo(); |
33 InspectorTest.selectNodeAndWaitForStyles("other", step5); | 33 InspectorTest.selectNodeAndWaitForStyles("other", step5); |
34 } | 34 } |
35 | 35 |
36 function step5() | 36 function step5() |
37 { | 37 { |
38 InspectorTest.addResult("After undo:"); | 38 InspectorTest.addResult("After undo:"); |
39 InspectorTest.dumpSelectedElementStyles(true, false, true); | 39 InspectorTest.dumpSelectedElementStyles(true, false, true); |
40 printStyleSheetAndCall(step6); | 40 printStyleSheetAndCall(step6); |
41 } | 41 } |
42 | 42 |
43 function step6() | 43 function step6() |
44 { | 44 { |
45 WebInspector.domModel.redo(); | 45 InspectorTest.domModel.redo(); |
46 InspectorTest.selectNodeAndWaitForStyles("inspected", step7); | 46 InspectorTest.selectNodeAndWaitForStyles("inspected", step7); |
47 } | 47 } |
48 | 48 |
49 function step7() | 49 function step7() |
50 { | 50 { |
51 InspectorTest.addResult("After redo:"); | 51 InspectorTest.addResult("After redo:"); |
52 InspectorTest.dumpSelectedElementStyles(true, false, true); | 52 InspectorTest.dumpSelectedElementStyles(true, false, true); |
53 printStyleSheetAndCall(step8); | 53 printStyleSheetAndCall(step8); |
54 } | 54 } |
55 | 55 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 <body onload="runTest()"> | 89 <body onload="runTest()"> |
90 <p> | 90 <p> |
91 Tests that adding a new rule can be undone. | 91 Tests that adding a new rule can be undone. |
92 </p> | 92 </p> |
93 | 93 |
94 <div class="foo" id="inspected" style="font-size: 12px">Text</div> | 94 <div class="foo" id="inspected" style="font-size: 12px">Text</div> |
95 <div class="foo" id="other" style="color:red"></div> | 95 <div class="foo" id="other" style="color:red"></div> |
96 | 96 |
97 </body> | 97 </body> |
98 </html> | 98 </html> |
OLD | NEW |