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

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

Issue 2234983002: [DevTools] Removed wasThrown from evaluate-like protocol methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 4 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
160 160
161 function step1(error, result, wasThrown) 161 function step1(error, result)
162 { 162 {
163 function sum() 163 function sum()
164 { 164 {
165 return this.a + this.b; 165 return this.a + this.b;
166 } 166 }
167 InspectorTest.RuntimeAgent.callFunctionOn(result.objectId, sum.t oString(), step2); 167 InspectorTest.RuntimeAgent.callFunctionOn(result.objectId, sum.t oString(), step2);
168 } 168 }
169 169
170 function step2(error, result, wasThrown) 170 function step2(error, result)
171 { 171 {
172 InspectorTest.assertEquals(3, result.value); 172 InspectorTest.assertEquals(3, result.value);
173 next(); 173 next();
174 } 174 }
175 }, 175 },
176 176
177 function dumpConsoleMessages(next) 177 function dumpConsoleMessages(next)
178 { 178 {
179 InspectorTest.dumpConsoleMessages(); 179 InspectorTest.dumpConsoleMessages();
180 next(); 180 next();
181 } 181 }
182 ]); 182 ]);
183 } 183 }
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