| Index: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
|
| index 27539dae50e5a2002430a07ccf54f7bea39ec09b..e527b0ae8c3225053a3e61571109807aa00a8dd0 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
|
| @@ -129,6 +129,28 @@ InspectorTest.evaluateFunctionInOverlay = function(func, callback)
|
| }
|
| }
|
|
|
| +InspectorTest.callFunctionInPageOnRemoteObjectAsync = function(remoteObject, code)
|
| +{
|
| + return new Promise((success, fail) => {
|
| + InspectorTest.RuntimeAgent.callFunctionOn(
|
| + remoteObject.objectId,
|
| + 'function() {' + code + '}',
|
| + [], // arguments
|
| + false, // silent
|
| + undefined, // returnByValue
|
| + undefined, // generatePreview
|
| + undefined, // userGesture
|
| + undefined, // awaitPromise
|
| + (error, result, exceptionDetails) => {
|
| + if (error || !!exceptionDetails) {
|
| + fail(error || result.description);
|
| + return;
|
| + }
|
| + success(InspectorTest.runtimeModel.createRemoteObject(result));
|
| + });
|
| + });
|
| +}
|
| +
|
| InspectorTest.check = function(passCondition, failureText)
|
| {
|
| if (!passCondition)
|
|
|