| 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..1c1d9eda5b4900bf4b5a7a95dc071af1f96d35cb 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,17 @@ InspectorTest.sendCommandPromise = function(method, params)
|
| return promise;
|
| }
|
|
|
| +InspectorTest.waitForEventPromise = function(eventName)
|
| +{
|
| + return new Promise(fulfill => InspectorTest.eventHandler[eventName] = fullfillAndClearListener.bind(null, fulfill));
|
| +
|
| + function fullfillAndClearListener(fulfill, result)
|
| + {
|
| + fulfill(result);
|
| + delete InspectorTest.eventHandler[eventName];
|
| + }
|
| +}
|
| +
|
| InspectorTest.domUndo = function(callback)
|
| {
|
| InspectorTest.sendCommandOrDie("DOM.undo", {}, callback);
|
|
|