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

Side by Side Diff: LayoutTests/inspector/elements/styles/undo-set-selector-text.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 <style> 3 <style>
4 #inspected { 4 #inspected {
5 color: green; 5 color: green;
6 } 6 }
7 </style> 7 </style>
8 <script src="../../../http/tests/inspector/inspector-test.js"></script> 8 <script src="../../../http/tests/inspector/inspector-test.js"></script>
9 <script src="../../../http/tests/inspector/elements-test.js"></script> 9 <script src="../../../http/tests/inspector/elements-test.js"></script>
10 <script> 10 <script>
(...skipping 11 matching lines...) Expand all
22 section.startEditingSelector(); 22 section.startEditingSelector();
23 section._selectorElement.textContent = "#inspected, #other"; 23 section._selectorElement.textContent = "#inspected, #other";
24 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Ent er")); 24 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Ent er"));
25 InspectorTest.selectNodeAndWaitForStyles("other", step2); 25 InspectorTest.selectNodeAndWaitForStyles("other", step2);
26 } 26 }
27 27
28 function step2() 28 function step2()
29 { 29 {
30 InspectorTest.addResult("=== After selector modification ==="); 30 InspectorTest.addResult("=== After selector modification ===");
31 InspectorTest.dumpSelectedElementStyles(true); 31 InspectorTest.dumpSelectedElementStyles(true);
32 WebInspector.domAgent.undo(); 32 WebInspector.domModel.undo();
33 InspectorTest.selectNodeAndWaitForStyles("inspected", step3); 33 InspectorTest.selectNodeAndWaitForStyles("inspected", step3);
34 } 34 }
35 35
36 function step3() 36 function step3()
37 { 37 {
38 InspectorTest.addResult("=== After undo ==="); 38 InspectorTest.addResult("=== After undo ===");
39 InspectorTest.dumpSelectedElementStyles(true); 39 InspectorTest.dumpSelectedElementStyles(true);
40 40
41 WebInspector.domAgent.redo(); 41 WebInspector.domModel.redo();
42 InspectorTest.selectNodeAndWaitForStyles("other", step4); 42 InspectorTest.selectNodeAndWaitForStyles("other", step4);
43 } 43 }
44 44
45 function step4() 45 function step4()
46 { 46 {
47 InspectorTest.addResult("=== After redo ==="); 47 InspectorTest.addResult("=== After redo ===");
48 InspectorTest.dumpSelectedElementStyles(true); 48 InspectorTest.dumpSelectedElementStyles(true);
49 InspectorTest.completeTest(); 49 InspectorTest.completeTest();
50 } 50 }
51 } 51 }
52 52
53 </script> 53 </script>
54 </head> 54 </head>
55 55
56 <body onload="runTest()"> 56 <body onload="runTest()">
57 <p> 57 <p>
58 Tests that setting selector text can be undone. 58 Tests that setting selector text can be undone.
59 </p> 59 </p>
60 60
61 <div id="inspected"></div> 61 <div id="inspected"></div>
62 <div id="other"></div> 62 <div id="other"></div>
63 63
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698