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); |
} |
} |