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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-history.html

Issue 2613643002: DevTools: migrate from external Maps to symbols in the bindings objects. (Closed)
Patch Set: review comments addressed. Created 3 years, 11 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 3
4 <link rel="stylesheet" href="../styles/resources/styles-history.css"> 4 <link rel="stylesheet" href="../styles/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/styles-test.js"></script> 9 <script src="../styles/styles-test.js"></script>
10 <script> 10 <script>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
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()
117 { 117 {
118 InspectorTest.addResult("History length: " + uiSourceCode.history.le ngth); 118 InspectorTest.addResult("History length: " + uiSourceCode.history(). length);
119 for (var i = 0; i < uiSourceCode.history.length; ++i) { 119 for (var i = 0; i < uiSourceCode.history().length; ++i) {
120 InspectorTest.addResult("Item " + i + ":"); 120 InspectorTest.addResult("Item " + i + ":");
121 InspectorTest.addResult(uiSourceCode.history[i].content); 121 InspectorTest.addResult(uiSourceCode.history()[i].content);
122 } 122 }
123 next(); 123 next();
124 } 124 }
125 return result; 125 return result;
126 } 126 }
127 127
128 function getLiveProperty(style, name) 128 function getLiveProperty(style, name)
129 { 129 {
130 for (var property of style.allProperties) { 130 for (var property of style.allProperties) {
131 if (!property.activeInStyle()) 131 if (!property.activeInStyle())
132 continue; 132 continue;
133 if (property.name === name) 133 if (property.name === name)
134 return property; 134 return property;
135 } 135 }
136 return null; 136 return null;
137 } 137 }
138 } 138 }
139 139
140 </script> 140 </script>
141 </head> 141 </head>
142 142
143 <body id="mainBody" onload="runTest()"> 143 <body id="mainBody" onload="runTest()">
144 <p> 144 <p>
145 Tests resources panel history. 145 Tests resources panel history.
146 </p> 146 </p>
147 </body> 147 </body>
148 </html> 148 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698