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

Side by Side Diff: LayoutTests/http/tests/inspector-enabled/reattach-after-editing-styles.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 <link rel="stylesheet" href="resources/style.css"> 3 <link rel="stylesheet" href="resources/style.css">
4 <script src="../inspector/inspector-test.js"></script> 4 <script src="../inspector/inspector-test.js"></script>
5 <script src="../inspector/elements-test.js"></script> 5 <script src="../inspector/elements-test.js"></script>
6 <script> 6 <script>
7 7
8 function reopenWebInspector(objectId) 8 function reopenWebInspector(objectId)
9 { 9 {
10 window.didReopen = 1; 10 window.didReopen = 1;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 InspectorTest.addNewRule("#testDiv, my-custom-tag", onFirstRuleAdded ); 65 InspectorTest.addNewRule("#testDiv, my-custom-tag", onFirstRuleAdded );
66 } 66 }
67 67
68 function onFirstRuleAdded() 68 function onFirstRuleAdded()
69 { 69 {
70 InspectorTest.addNewRule("#testDiv, another-custom-tag", onSecondRul eAdded); 70 InspectorTest.addNewRule("#testDiv, another-custom-tag", onSecondRul eAdded);
71 } 71 }
72 72
73 function onSecondRuleAdded() 73 function onSecondRuleAdded()
74 { 74 {
75 WebInspector.domModel.undo(onRuleRemoved); 75 InspectorTest.domModel.undo(onRuleRemoved);
76 } 76 }
77 77
78 function onRuleRemoved() 78 function onRuleRemoved()
79 { 79 {
80 InspectorTest.selectNodeAndWaitForStyles("other", step4); 80 InspectorTest.selectNodeAndWaitForStyles("other", step4);
81 } 81 }
82 82
83 function step4() 83 function step4()
84 { 84 {
85 InspectorTest.addResult("Dump styles after editing:"); 85 InspectorTest.addResult("Dump styles after editing:");
(...skipping 20 matching lines...) Expand all
106 } 106 }
107 </script> 107 </script>
108 </head> 108 </head>
109 109
110 <body onload="initTest()"> 110 <body onload="initTest()">
111 <p>This test checks that styles edited through inspector are correctly shown upo n reattach.</p> 111 <p>This test checks that styles edited through inspector are correctly shown upo n reattach.</p>
112 <div id="testDiv"></div> 112 <div id="testDiv"></div>
113 <div id="other"></div> 113 <div id="other"></div>
114 </body> 114 </body>
115 </html> 115 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698