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

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

Issue 1943763002: DevTools: [SASS] fix CSSWorkspaceBinding.propertyUILocation to account for comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@super-sass
Patch Set: fix tests Created 4 years, 8 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 952efae980d6139557fa8fde39a11190c3cefb1e..5f686edf8b443b93c4bac0ce3e03c943c0dd940d 100644
--- a/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
@@ -305,7 +305,7 @@ InspectorTest.createEdit = function(source, pattern, newText, matchNumber)
if (!match)
return null;
var sourceRange = new WebInspector.SourceRange(match.index, match[0].length);
- var textRange = sourceRange.toTextRange(new WebInspector.Text(source));
+ var textRange = new WebInspector.Text(source).toTextRange(sourceRange);
return new WebInspector.SourceEdit("", textRange, newText);
}

Powered by Google App Engine
This is Rietveld 408576698