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

Side by Side Diff: LayoutTests/inspector/elements/styles/styles-history.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 3
4 <link rel="stylesheet" href="resources/styles-history.css"> 4 <link rel="stylesheet" href="resources/styles-history.css">
5 5
6 <script src="../../../http/tests/inspector/inspector-test.js"></script> 6 <script src="../../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../../http/tests/inspector/elements-test.js"></script> 7 <script src="../../../http/tests/inspector/elements-test.js"></script>
8 <script src="../../../http/tests/inspector/resources-test.js"></script> 8 <script src="../../../http/tests/inspector/resources-test.js"></script>
9 <script src="styles-test.js"></script> 9 <script src="styles-test.js"></script>
10 <script> 10 <script>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 { 96 {
97 if (error) { 97 if (error) {
98 InspectorTest.addResult("error: " + error); 98 InspectorTest.addResult("error: " + error);
99 InspectorTest.completeTest(); 99 InspectorTest.completeTest();
100 return; 100 return;
101 } 101 }
102 for (var i = 0; i < matchedStyles.length; ++i) { 102 for (var i = 0; i < matchedStyles.length; ++i) {
103 var rule = matchedStyles[i].rule; 103 var rule = matchedStyles[i].rule;
104 if (rule.origin !== "regular") 104 if (rule.origin !== "regular")
105 continue; 105 continue;
106 callback(WebInspector.CSSStyleDeclaration.parsePayload(WebInspec tor.cssModel, rule.style)); 106 callback(WebInspector.CSSStyleDeclaration.parsePayload(Inspector Test.cssModel, rule.style));
107 return; 107 return;
108 } 108 }
109 InspectorTest.addResult("error: did not find any regular rule"); 109 InspectorTest.addResult("error: did not find any regular rule");
110 InspectorTest.completeTest(); 110 InspectorTest.completeTest();
111 } 111 }
112 } 112 }
113 113
114 function dumpHistory(next) 114 function dumpHistory(next)
115 { 115 {
116 function result() 116 function result()
(...skipping 11 matching lines...) Expand all
128 128
129 </script> 129 </script>
130 </head> 130 </head>
131 131
132 <body id="mainBody" onload="runTest()"> 132 <body id="mainBody" onload="runTest()">
133 <p> 133 <p>
134 Tests resources panel history. 134 Tests resources panel history.
135 </p> 135 </p>
136 </body> 136 </body>
137 </html> 137 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698