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

Unified Diff: test/inspector/protocol-test.js

Issue 2916803005: [inspector] Create InjectedScript per session in each context (Closed)
Patch Set: rebased Created 3 years, 6 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
« no previous file with comments | « test/inspector/isolate-data.cc ('k') | test/inspector/sessions/runtime-command-line-api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/protocol-test.js
diff --git a/test/inspector/protocol-test.js b/test/inspector/protocol-test.js
index cf4ae7bfcd1a9a194f369af1025df473ff489766..427f20d170e74371049b1042aedeb0db2857ca42 100644
--- a/test/inspector/protocol-test.js
+++ b/test/inspector/protocol-test.js
@@ -186,6 +186,10 @@ InspectorTest.Session = class {
this.id = utils.connectSession(this.contextGroup.id, state, this._dispatchMessage.bind(this));
}
+ async addInspectedObject(serializable) {
+ return this.Protocol.Runtime.evaluate({expression: `inspector.addInspectedObject(${this.id}, ${JSON.stringify(serializable)})`});
+ }
+
sendRawCommand(requestId, command, handler) {
if (InspectorTest._dumpInspectorProtocolMessages)
utils.print("frontend: " + command);
« no previous file with comments | « test/inspector/isolate-data.cc ('k') | test/inspector/sessions/runtime-command-line-api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698