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

Side by Side Diff: test/inspector-protocol/protocol-test.js

Issue 2370033003: [inspector] test for fixed empty stack processing in console.count (Closed)
Patch Set: a Created 4 years, 2 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
« no previous file with comments | « test/inspector-protocol/debugger/async-console-count-doesnt-crash-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 InspectorTest = {}; 5 InspectorTest = {};
6 InspectorTest._dispatchTable = new Map(); 6 InspectorTest._dispatchTable = new Map();
7 InspectorTest._requestId = 0; 7 InspectorTest._requestId = 0;
8 InspectorTest._dumpInspectorProtocolMessages = false; 8 InspectorTest._dumpInspectorProtocolMessages = false;
9 InspectorTest.eventHandler = {}; 9 InspectorTest.eventHandler = {};
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 dumpValue(object[i], " " + prefix, " " + prefix + "[" + i + "] : "); 128 dumpValue(object[i], " " + prefix, " " + prefix + "[" + i + "] : ");
129 lines.push(prefix + "]"); 129 lines.push(prefix + "]");
130 } 130 }
131 131
132 dumpValue(object, "", title); 132 dumpValue(object, "", title);
133 InspectorTest.log(lines.join("\n")); 133 InspectorTest.log(lines.join("\n"));
134 } 134 }
135 135
136 InspectorTest.completeTest = quit.bind(null); 136 InspectorTest.completeTest = quit.bind(null);
137 137
138 InspectorTest.completeTestAfterPendingTimeouts = function()
139 {
140 InspectorTest.sendCommand("Runtime.evaluate", {
141 expression: "new Promise(resolve => setTimeout(resolve, 0))",
142 awaitPromise: true }, InspectorTest.completeTest)
dgozman 2016/09/27 16:33:19 missing semicolon
kozy 2016/09/27 20:22:10 Done.
143 }
144
138 InspectorTest.evaluateInPage = function(string, callback) 145 InspectorTest.evaluateInPage = function(string, callback)
139 { 146 {
140 InspectorTest.sendCommand("Runtime.evaluate", { "expression": string }, functi on(message) { 147 InspectorTest.sendCommand("Runtime.evaluate", { "expression": string }, functi on(message) {
141 if (message.error) 148 if (message.error)
142 InspectorTest.log("Error while executing '" + string + "': " + message.err or.message); 149 InspectorTest.log("Error while executing '" + string + "': " + message.err or.message);
143 else if (callback) 150 else if (callback)
144 callback(message.result.result.value); 151 callback(message.result.result.value);
145 }); 152 });
146 }; 153 };
147 154
(...skipping 18 matching lines...) Expand all
166 if (!testSuite.length) { 173 if (!testSuite.length) {
167 InspectorTest.completeTest(); 174 InspectorTest.completeTest();
168 return; 175 return;
169 } 176 }
170 var fun = testSuite.shift(); 177 var fun = testSuite.shift();
171 InspectorTest.log("\nRunning test: " + fun.name); 178 InspectorTest.log("\nRunning test: " + fun.name);
172 fun(nextTest); 179 fun(nextTest);
173 } 180 }
174 nextTest(); 181 nextTest();
175 } 182 }
OLDNEW
« no previous file with comments | « test/inspector-protocol/debugger/async-console-count-doesnt-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698