| 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 510b44164d4735fe48751d0dd7451dc8e314c44a..1f3ce3cf19a26447d56d654cdd5f15ad1b05188e 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
|
| @@ -62,6 +62,9 @@ InspectorTest.sendCommand = function(method, params, handler)
|
|
|
| InspectorTest.sendCommandOrDie = function(command, properties, callback)
|
| {
|
| + var fulfill;
|
| + var result = new Promise(f => fulfill = f);
|
| +
|
| InspectorTest.sendCommand(command, properties || {}, commandCallback);
|
| function commandCallback(msg)
|
| {
|
| @@ -72,7 +75,9 @@ InspectorTest.sendCommandOrDie = function(command, properties, callback)
|
| }
|
| if (callback)
|
| callback(msg.result);
|
| + fulfill(msg.result);
|
| }
|
| + return result;
|
| }
|
|
|
| InspectorTest.sendCommandPromise = function(method, params)
|
|
|