Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: LayoutTests/inspector/elements/perform-undo-undo.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/node-xpath.xhtml ('k') | LayoutTests/inspector/elements/resolve-alien-node.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698