OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #import('dart:html'); | 5 import 'dart:html'; |
6 #import('css.dart'); | 6 import 'css.dart'; |
7 #import('../lib/file_system_memory.dart'); | 7 import '../lib/file_system_memory.dart'; |
8 | 8 |
9 void runCss([bool debug = false, bool parseOnly = false]) { | 9 void runCss([bool debug = false, bool parseOnly = false]) { |
10 final Document doc = window.document; | 10 final Document doc = window.document; |
11 final TextAreaElement classes = doc.query("#classes"); | 11 final TextAreaElement classes = doc.query("#classes"); |
12 final TextAreaElement expression = doc.query('#expression'); | 12 final TextAreaElement expression = doc.query('#expression'); |
13 final TableCellElement validity = doc.query('#validity'); | 13 final TableCellElement validity = doc.query('#validity'); |
14 final TableCellElement result = doc.query('#result'); | 14 final TableCellElement result = doc.query('#result'); |
15 | 15 |
16 List<String> knownWorld = classes.value.split("\n"); | 16 List<String> knownWorld = classes.value.split("\n"); |
17 List<String> knownClasses = []; | 17 List<String> knownClasses = []; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 runCss(); | 182 runCss(); |
183 }); | 183 }); |
184 | 184 |
185 ButtonElement debugButton = window.document.query('#debug'); | 185 ButtonElement debugButton = window.document.query('#debug'); |
186 debugButton.on.click.add((MouseEvent e) { | 186 debugButton.on.click.add((MouseEvent e) { |
187 runCss(true); | 187 runCss(true); |
188 }); | 188 }); |
189 | 189 |
190 initCssWorld(false); | 190 initCssWorld(false); |
191 } | 191 } |
OLD | NEW |