| 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 bc93957aee3d03044e32a749c5a5baac195fdc41..510b44164d4735fe48751d0dd7451dc8e314c44a 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
|
| @@ -298,6 +298,16 @@ InspectorTest.evaluateInPage = function(string, callback)
|
| });
|
| };
|
|
|
| +/**
|
| + * Evaluates expression in page.
|
| + * @param {string} expression
|
| + * @return {!Promise<?>}
|
| + */
|
| +InspectorTest.evaluateInPagePromise = function(expression)
|
| +{
|
| + return InspectorTest.sendCommandPromise("Runtime.evaluate", { "expression": expression, awaitPromise: false, returnByValue: true });
|
| +};
|
| +
|
| InspectorTest.evaluateInPageAsync = function(expression)
|
| {
|
| return InspectorTest.sendCommandPromise("Runtime.evaluate", { "expression": expression, awaitPromise: true, returnByValue: true }).then((message) => message.result.result.value);
|
|
|