Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
| index fc3cbd3a0e8771ae6cde90272608ac6041daface..6a06bb736defba620a2f35f592fc45ed8f0c5fba 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
| @@ -83,6 +83,11 @@ InspectorTest.sendCommandPromise = function(method, params) |
| return promise; |
| } |
| +InspectorTest.waitForEventPromise = function(eventName) |
| +{ |
| + return new Promise(fulfill => InspectorTest.eventHandler[eventName] = fulfill); |
|
dgozman
2016/08/12 23:14:13
Please remove from eventHandler after it's called.
kozy
2016/08/12 23:38:59
Done.
|
| +} |
| + |
| InspectorTest.domUndo = function(callback) |
| { |
| InspectorTest.sendCommandOrDie("DOM.undo", {}, callback); |