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

Unified Diff: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html

Issue 391413003: DevTools: [Timeline] extract common infrastructure from tracing tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: syntax error was fixed Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
diff --git a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
index aabbca621b5425b217b98aee739b93964e994533..294ba4036797e18bdcf5571ce04358693addc45f 100644
--- a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
+++ b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
@@ -53,7 +53,7 @@ InspectorTest.sendCommand = function(method, params, handler)
"id": this._requestId };
if (InspectorTest._dumpInspectorProtocolMessages)
- testRunner.logToStderr("backend: " + JSON.stringify(messageObject));
+ testRunner.logToStderr("frontend: " + JSON.stringify(messageObject));
InspectorFrontendHost.sendMessageToBackend(JSON.stringify(messageObject));
return this._requestId;
@@ -141,7 +141,7 @@ InspectorTest.sendRawCommand = function(command, handler)
InspectorFrontendAPI.dispatchMessage = function(message)
{
if (InspectorTest._dumpInspectorProtocolMessages)
- testRunner.logToStderr("frontend: " + message);
+ testRunner.logToStderr("backend: " + message);
var messageObject = JSON.parse(message);
var messageId = messageObject["id"];
try {
@@ -156,7 +156,7 @@ InspectorFrontendAPI.dispatchMessage = function(message)
eventHandler(messageObject);
}
} catch(e) {
- InspectorTest.log("Exception when dispatching message: " + e + "\n\n message = " + JSON.stringify(messageObject, null, 2));
+ InspectorTest.log("Exception when dispatching message: " + e + "\n" + e.stack + "\n message = " + JSON.stringify(messageObject, null, 2));
InspectorTest.completeTest();
}
}
@@ -243,7 +243,7 @@ InspectorTest.completeTest = function()
* @param {string} message
* @param {!function} callback
*/
-InspectorTest.executeInPage = function(string, callback)
+InspectorTest.evaluateInPage = function(string, callback)
{
this.sendCommand("Runtime.evaluate", { "expression": string }, function(message) {
if (message.error)

Powered by Google App Engine
This is Rietveld 408576698