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

Unified Diff: LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js

Issue 11275274: Merge 133030 - Web Inspector: page crash when pausing in dedicated worker (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/debugger-pause-dedicated-worker.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js
===================================================================
--- LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js (revision 134348)
+++ LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js (working copy)
@@ -27,6 +27,7 @@
InspectorTest = {};
InspectorTest._dispatchTable = [];
InspectorTest._requestId = -1;
+InspectorTest.eventHandler = {};
/**
* @param {string} method
@@ -56,6 +57,11 @@
var handler = InspectorTest._dispatchTable[messageId];
if (handler && typeof handler === "function")
handler(messageObject);
+ } else {
+ var eventName = messageObject["method"];
+ var eventHandler = InspectorTest.eventHandler[eventName];
+ if (eventHandler)
+ eventHandler(messageObject);
}
}
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/debugger-pause-dedicated-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698