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