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 var containerNode; | 9 var containerNode; |
10 InspectorTest.expandElementsTree(step1); | 10 InspectorTest.expandElementsTree(step1); |
(...skipping 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 function step3() | 31 function step3() |
32 { | 32 { |
33 function callback() | 33 function callback() |
34 { | 34 { |
35 InspectorTest.addResult("===== Undo 1 ====="); | 35 InspectorTest.addResult("===== Undo 1 ====="); |
36 InspectorTest.dumpElementsTree(containerNode); | 36 InspectorTest.dumpElementsTree(containerNode); |
37 step4(); | 37 step4(); |
38 } | 38 } |
39 WebInspector.domModel.undo(callback); | 39 InspectorTest.domModel.undo(callback); |
40 } | 40 } |
41 | 41 |
42 function step4() | 42 function step4() |
43 { | 43 { |
44 function callback() | 44 function callback() |
45 { | 45 { |
46 InspectorTest.addResult("===== Undo 2 ====="); | 46 InspectorTest.addResult("===== Undo 2 ====="); |
47 InspectorTest.dumpElementsTree(containerNode); | 47 InspectorTest.dumpElementsTree(containerNode); |
48 InspectorTest.completeTest(); | 48 InspectorTest.completeTest(); |
49 } | 49 } |
50 WebInspector.domModel.undo(callback); | 50 InspectorTest.domModel.undo(callback); |
51 } | 51 } |
52 } | 52 } |
53 | 53 |
54 </script> | 54 </script> |
55 </head> | 55 </head> |
56 | 56 |
57 <body onload="runTest()"> | 57 <body onload="runTest()"> |
58 <p> | 58 <p> |
59 Tests that client can call undo multiple times with non-empty history. | 59 Tests that client can call undo multiple times with non-empty history. |
60 </p> | 60 </p> |
61 | 61 |
62 <div style="display:none" id="container"> | 62 <div style="display:none" id="container"> |
63 </div> | 63 </div> |
64 | 64 |
65 </body> | 65 </body> |
66 </html> | 66 </html> |
OLD | NEW |