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

Side by Side Diff: utils/css/uitest.dart

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/css/tool.dart ('k') | utils/lib/file_system.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « utils/css/tool.dart ('k') | utils/lib/file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698