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

Side by Side Diff: LayoutTests/inspector/elements/styles/undo-add-new-rule.html

Issue 206313004: DevTools: Rename WebInspector.DOMAgent into WebInspector.DOMModel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 6 years, 9 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
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 WebInspector.inspectorView.showPanel("elements"); 9 WebInspector.inspectorView.showPanel("elements");
10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); 10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
(...skipping 12 matching lines...) Expand all
23 23
24 function step3() 24 function step3()
25 { 25 {
26 InspectorTest.addResult("After adding new rule:"); 26 InspectorTest.addResult("After adding new rule:");
27 InspectorTest.dumpSelectedElementStyles(true, false, true); 27 InspectorTest.dumpSelectedElementStyles(true, false, true);
28 printStyleSheetAndCall(step4); 28 printStyleSheetAndCall(step4);
29 } 29 }
30 30
31 function step4() 31 function step4()
32 { 32 {
33 WebInspector.domAgent.undo(); 33 WebInspector.domModel.undo();
34 InspectorTest.selectNodeAndWaitForStyles("other", step5); 34 InspectorTest.selectNodeAndWaitForStyles("other", step5);
35 } 35 }
36 36
37 function step5() 37 function step5()
38 { 38 {
39 InspectorTest.addResult("After undo:"); 39 InspectorTest.addResult("After undo:");
40 InspectorTest.dumpSelectedElementStyles(true, false, true); 40 InspectorTest.dumpSelectedElementStyles(true, false, true);
41 printStyleSheetAndCall(step6); 41 printStyleSheetAndCall(step6);
42 } 42 }
43 43
44 function step6() 44 function step6()
45 { 45 {
46 WebInspector.domAgent.redo(); 46 WebInspector.domModel.redo();
47 InspectorTest.selectNodeAndWaitForStyles("inspected", step7); 47 InspectorTest.selectNodeAndWaitForStyles("inspected", step7);
48 } 48 }
49 49
50 function step7() 50 function step7()
51 { 51 {
52 InspectorTest.addResult("After redo:"); 52 InspectorTest.addResult("After redo:");
53 InspectorTest.dumpSelectedElementStyles(true, false, true); 53 InspectorTest.dumpSelectedElementStyles(true, false, true);
54 printStyleSheetAndCall(step8); 54 printStyleSheetAndCall(step8);
55 } 55 }
56 56
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 <body onload="runTest()"> 90 <body onload="runTest()">
91 <p> 91 <p>
92 Tests that adding a new rule can be undone. 92 Tests that adding a new rule can be undone.
93 </p> 93 </p>
94 94
95 <div class="foo" id="inspected" style="font-size: 12px">Text</div> 95 <div class="foo" id="inspected" style="font-size: 12px">Text</div>
96 <div class="foo" id="other" style="color:red"></div> 96 <div class="foo" id="other" style="color:red"></div>
97 97
98 </body> 98 </body>
99 </html> 99 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698