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

Unified Diff: utils/css/uitest.dart

Issue 9695048: Template parser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix GIT mixup - ugh Created 8 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: utils/css/uitest.dart
diff --git a/utils/css/uitest.dart b/utils/css/uitest.dart
index 32cca3d0b13f4d6ec98a63155b081a01d67999e9..83d3e1636db9d97409aef4b412492107f4dd6674 100644
--- a/utils/css/uitest.dart
+++ b/utils/css/uitest.dart
@@ -4,9 +4,17 @@
#import('dart:html');
#import('css.dart');
-#import('../../frog/lang.dart', prefix:'lang');
#import('../../frog/file_system_memory.dart');
+// TODO(terry): Remove use for debug only.
Siggi Cherem (dart-lang) 2012/03/15 01:21:25 agree (and the call in line 50)
terry 2012/03/15 19:02:49 Done.
+void debugger() {
+ try {
+ throw "DEBUG";
+ } catch (var e) {
+ print("DEBUGBREAK");
+ }
+}
+
void runCss([bool debug = false, bool parseOnly = false]) {
final Document doc = window.document;
final TextAreaElement classes = doc.query("#classes");
@@ -39,8 +47,9 @@ void runCss([bool debug = false, bool parseOnly = false]) {
}
} else if (parseOnly) {
try {
- Parser parser = new Parser(new lang.SourceFile(
- lang.SourceFile.IN_MEMORY_FILE, cssExpr));
+debugger();
+ Parser parser = new Parser(new SourceFile(
+ SourceFile.IN_MEMORY_FILE, cssExpr));
Stylesheet stylesheet = parser.parse();
StringBuffer stylesheetTree = new StringBuffer();
String prettyStylesheet = stylesheet.toString();

Powered by Google App Engine
This is Rietveld 408576698