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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-tainted-globals.html

Issue 1877223003: DevTools: deprecate InspectorTest.runAfterPendingDispatches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 6
7 var originalError = window.Error; 7 var originalError = window.Error;
8 8
9 (function() { 9 (function() {
10 var originalFunctionCall = Function.prototype.call; 10 var originalFunctionCall = Function.prototype.call;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 "testOverriddenToString({}, true)", 139 "testOverriddenToString({}, true)",
140 "testOverriddenToString({}, false)", 140 "testOverriddenToString({}, false)",
141 "testOverriddenToString(new Number(1), true)", 141 "testOverriddenToString(new Number(1), true)",
142 "testOverriddenToString(new Number(1), false)", 142 "testOverriddenToString(new Number(1), false)",
143 ]; 143 ];
144 144
145 function iterate() 145 function iterate()
146 { 146 {
147 var expr = expressions.shift(); 147 var expr = expressions.shift();
148 if (!expr) { 148 if (!expr) {
149 InspectorTest.runAfterPendingDispatches(next); 149 InspectorTest.deprecatedRunAfterPendingDispatches(next);
150 return; 150 return;
151 } 151 }
152 InspectorTest.evaluateInConsole(expr, iterate); 152 InspectorTest.evaluateInConsole(expr, iterate);
153 } 153 }
154 iterate(); 154 iterate();
155 }, 155 },
156 156
157 function testRuntimeAgentCallFunctionOn(next) 157 function testRuntimeAgentCallFunctionOn(next)
158 { 158 {
159 InspectorTest.RuntimeAgent.evaluate("({ a : 1, b : 2 })", step1); 159 InspectorTest.RuntimeAgent.evaluate("({ a : 1, b : 2 })", step1);
(...skipping 24 matching lines...) Expand all
184 </script> 184 </script>
185 </head> 185 </head>
186 186
187 <body onload="runTest()"> 187 <body onload="runTest()">
188 <p> 188 <p>
189 Tests that overriding global methods (like Array.prototype.push, Math.max) will not break the inspector. 189 Tests that overriding global methods (like Array.prototype.push, Math.max) will not break the inspector.
190 </p> 190 </p>
191 191
192 </body> 192 </body>
193 </html> 193 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698