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

Unified Diff: test/inspector/debugger/script-on-after-compile.js

Issue 2755863002: [Devtools] Add stacktrace to protocol for scriptParsed event (Closed)
Patch Set: fix tests Created 3 years, 9 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: test/inspector/debugger/script-on-after-compile.js
diff --git a/test/inspector/debugger/script-on-after-compile.js b/test/inspector/debugger/script-on-after-compile.js
index 15631c54b475b567db4e8b893c5a7d9177512912..6a5a55b5ffd097e8865fbacdd2f03e75cecb171e 100644
--- a/test/inspector/debugger/script-on-after-compile.js
+++ b/test/inspector/debugger/script-on-after-compile.js
@@ -65,29 +65,9 @@ function requestSourceAndDump(scriptParsedMessage, scriptParsed) {
}
function dumpScriptParsed(scriptParsedMessage, sourceMessage, scriptParsed) {
- var params = scriptParsedMessage.params;
- var re = /[A-Z0-9]{40,40}/;
- if (!params.hash || !matchExact(re, params.hash))
- params.hash = "Invalid hash: " + params.hash;
- else
- params.hash = "<hash>";
- if (params.executionContextId <= 0)
- params.executionContextId = "Invalid executionContextId: " + params.executionContextId;
- else
- params.executionContextId = "<executionContextId>";
- if (params.scriptId * 1 <= 0)
- params.scriptId = "Invalid scriptId: " + params.scriptId;
- else
- params.scriptId = "<scriptId>";
-
var sourceResult = sourceMessage.result;
sourceResult.scriptSource = sourceResult.scriptSource.replace(/\n/g, "<nl>");
InspectorTest.log(scriptParsed ? "scriptParsed" : "scriptFailedToParse");
InspectorTest.logObject(sourceResult);
- InspectorTest.logObject(params);
-}
-
-function matchExact(re, str) {
- var match = str.match(re);
- return match !== null && str === match[0];
+ InspectorTest.logMessage(scriptParsedMessage.params);
}
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | test/inspector/debugger/script-on-after-compile-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698