Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1092)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2838673003: [Devtools][Regression] Fixed websocket frame selection loss on frame received (Closed)
Patch Set: [Devtools] Fixed websocket frame selection loss on frame received Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698