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

Side by Side Diff: LayoutTests/inspector/elements/styles/undo-add-property.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 5
6 <style> 6 <style>
7 .container { 7 .container {
8 font-weight: bold 8 font-weight: bold
9 } 9 }
10 </style> 10 </style>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weigh t"); 42 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weigh t");
43 var treeElement = treeItem.section().addNewBlankProperty(index); 43 var treeElement = treeItem.section().addNewBlankProperty(index);
44 treeElement.applyStyleText(propertyText, true, true); 44 treeElement.applyStyleText(propertyText, true, true);
45 InspectorTest.waitForStyles("container", step1); 45 InspectorTest.waitForStyles("container", step1);
46 46
47 function step1() 47 function step1()
48 { 48 {
49 InspectorTest.addResult("(After adding property)"); 49 InspectorTest.addResult("(After adding property)");
50 InspectorTest.dumpSelectedElementStyles(true); 50 InspectorTest.dumpSelectedElementStyles(true);
51 51
52 WebInspector.domAgent.undo(); 52 WebInspector.domModel.undo();
53 InspectorTest.selectNodeAndWaitForStyles("other", step2); 53 InspectorTest.selectNodeAndWaitForStyles("other", step2);
54 } 54 }
55 55
56 function step2() 56 function step2()
57 { 57 {
58 InspectorTest.addResult("(After undo)"); 58 InspectorTest.addResult("(After undo)");
59 InspectorTest.dumpSelectedElementStyles(true); 59 InspectorTest.dumpSelectedElementStyles(true);
60 60
61 WebInspector.domAgent.redo(); 61 WebInspector.domModel.redo();
62 InspectorTest.selectNodeAndWaitForStyles("container", step3); 62 InspectorTest.selectNodeAndWaitForStyles("container", step3);
63 } 63 }
64 64
65 function step3() 65 function step3()
66 { 66 {
67 InspectorTest.addResult("(After redo)"); 67 InspectorTest.addResult("(After redo)");
68 InspectorTest.dumpSelectedElementStyles(true); 68 InspectorTest.dumpSelectedElementStyles(true);
69 callback(); 69 callback();
70 } 70 }
71 } 71 }
72 } 72 }
73 </script> 73 </script>
74 </head> 74 </head>
75 75
76 <body onload="runTest()"> 76 <body onload="runTest()">
77 <p> 77 <p>
78 Tests that adding a property is undone properly. 78 Tests that adding a property is undone properly.
79 </p> 79 </p>
80 80
81 <div id="container" class="container"></div> 81 <div id="container" class="container"></div>
82 <div id="other" class="container"></div> 82 <div id="other" class="container"></div>
83 83
84 </body> 84 </body>
85 </html> 85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698