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

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

Issue 2779703004: DevTools: carefully cleanup CSS sourcemaps (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: third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
diff --git a/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js b/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
index addf50cf1ca4a7b510deb2f7958b2e286b30b652..3ae81d401afc902e080f2fb10dcb9b14318b4cb8 100644
--- a/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
@@ -27,10 +27,10 @@ InspectorTest.loadASTMapping = function(header, callback)
sourceMapManager.addEventListener(SDK.SourceMapManager.Events.SourceMapAttached, onAttached);
function onAttached(event) {
- if (event.data !== header)
+ if (event.data.client !== header)
return;
sourceMapManager.removeEventListener(SDK.SourceMapManager.Events.SourceMapAttached, onAttached);
- var sourceMap = sourceMapManager.sourceMapForClient(header);
+ var sourceMap = event.data.sourceMap;
callback(sourceMap.editable()? sourceMap : null);
}
}

Powered by Google App Engine
This is Rietveld 408576698