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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js

Issue 2731403009: DevTools: add tests to fixate sourcemap bindings behavior (Closed)
Patch Set: rebaseline 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: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
index d4a9c03191d14d862ac3564086876b728d2e7583..251e6ae9436d6470091e42b1fe4941fbc283141a 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
@@ -200,7 +200,16 @@ Bindings.CompilerScriptMapping = class {
this._stubUISourceCodes.set(script.scriptId, stubUISourceCode);
this._debuggerWorkspaceBinding.pushSourceMapping(script, this);
- this._loadSourceMapForScript(script).then(this._sourceMapLoaded.bind(this, script, stubUISourceCode.url()));
+ this._loadSourceMapForScript(script).then(sourceMap => {
+ this._sourceMapLoaded(script, stubUISourceCode.url(), sourceMap);
+ this._sourceMapAttachedForTest(sourceMap);
+ });
+ }
+
+ /**
+ * @param {?SDK.TextSourceMap} sourceMap
+ */
+ _sourceMapAttachedForTest(sourceMap) {
}
/**

Powered by Google App Engine
This is Rietveld 408576698