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

Side by Side Diff: LayoutTests/inspector/elements/styles/undo-change-property.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 5
6 <style> 6 <style>
7 .container { 7 .container {
8 font-weight: bold 8 font-weight: bold
9 } 9 }
10 </style> 10 </style>
(...skipping 12 matching lines...) Expand all
23 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weigh t"); 23 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weigh t");
24 treeItem.applyStyleText("font-weight: normal", true, false); 24 treeItem.applyStyleText("font-weight: normal", true, false);
25 InspectorTest.waitForStyles("container", step2); 25 InspectorTest.waitForStyles("container", step2);
26 } 26 }
27 27
28 function step2() 28 function step2()
29 { 29 {
30 InspectorTest.addResult("After changing property"); 30 InspectorTest.addResult("After changing property");
31 InspectorTest.dumpSelectedElementStyles(true); 31 InspectorTest.dumpSelectedElementStyles(true);
32 32
33 WebInspector.domModel.undo(); 33 InspectorTest.domModel.undo();
34 InspectorTest.selectNodeAndWaitForStyles("other", step3); 34 InspectorTest.selectNodeAndWaitForStyles("other", step3);
35 } 35 }
36 36
37 function step3() 37 function step3()
38 { 38 {
39 InspectorTest.addResult("After undo"); 39 InspectorTest.addResult("After undo");
40 InspectorTest.dumpSelectedElementStyles(true); 40 InspectorTest.dumpSelectedElementStyles(true);
41 41
42 WebInspector.domModel.redo(); 42 InspectorTest.domModel.redo();
43 InspectorTest.selectNodeAndWaitForStyles("container", step4); 43 InspectorTest.selectNodeAndWaitForStyles("container", step4);
44 } 44 }
45 45
46 function step4() 46 function step4()
47 { 47 {
48 InspectorTest.addResult("After redo"); 48 InspectorTest.addResult("After redo");
49 InspectorTest.dumpSelectedElementStyles(true); 49 InspectorTest.dumpSelectedElementStyles(true);
50 InspectorTest.completeTest(); 50 InspectorTest.completeTest();
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 changing a property is undone properly. 58 Tests that changing a property is undone properly.
59 </p> 59 </p>
60 60
61 <div id="container" class="container"></div> 61 <div id="container" class="container"></div>
62 <div id="other" class="container"></div> 62 <div id="other" class="container"></div>
63 63
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698