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

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

Issue 1515733002: DevTools: [SASS] implement CSS AST-builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sass-module
Patch Set: rebaseline test Created 5 years 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 47a654fa0160d09163165a4043c37e7d232b604b..0ed17d0a5a471eca64e699088d45d8e204df1795 100644
--- a/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js
@@ -86,5 +86,14 @@ InspectorTest.parseSCSS = function(url, text)
}
}
+var cssParser = null;
+
+InspectorTest.parseCSS = function(url, text)
+{
+ if (!cssParser)
+ cssParser = new WebInspector.CSSParser();
+ return WebInspector.SASSSupport.parseCSS(cssParser, url, text);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698