| 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);
|
| }
|
| }
|
|
|
|
|