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

Unified Diff: test/inspector/debugger/wasm-source.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed Created 3 years, 7 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/debugger/wasm-scripts-expected.txt ('k') | test/inspector/debugger/wasm-source-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/wasm-source.js
diff --git a/test/inspector/debugger/wasm-source.js b/test/inspector/debugger/wasm-source.js
index cadd44f90923fd8e1383218afc1914a1b0eeaa92..bf7bab735cb47c22cd2c7fddf61b0ec0c6c384ca 100644
--- a/test/inspector/debugger/wasm-source.js
+++ b/test/inspector/debugger/wasm-source.js
@@ -4,6 +4,8 @@
// Flags: --expose-wasm
+let {session, contextGroup, Protocol} = InspectorTest.start('Tests how wasm scrips report the source');
+
utils.load('test/mjsunit/wasm/wasm-constants.js');
utils.load('test/mjsunit/wasm/wasm-module-builder.js');
@@ -45,8 +47,8 @@ function testFunction(bytes) {
instance.exports.main();
}
-InspectorTest.addScript(testFunction.toString());
-InspectorTest.addScript('var module_bytes = ' + JSON.stringify(module_bytes));
+contextGroup.addScript(testFunction.toString());
+contextGroup.addScript('var module_bytes = ' + JSON.stringify(module_bytes));
Protocol.Debugger.enable();
Protocol.Debugger.onPaused(handleDebuggerPaused);
« no previous file with comments | « test/inspector/debugger/wasm-scripts-expected.txt ('k') | test/inspector/debugger/wasm-source-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698