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

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

Issue 9168008: Enabled CSS tests, added CSS tests to buildbot, fixed tooling with nodejs, and added more tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More coding convention changes (consistency). Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/css/tokenkind.dart ('k') | utils/css/tree.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 #library('csstool'); 5 #library('csstool');
6 6
7 #import('../../frog/lang.dart', prefix:'lang');
7 #import('../../frog/file_system.dart'); 8 #import('../../frog/file_system.dart');
8 #import('../../frog/file_system_node.dart'); 9 #import('../../frog/file_system_node.dart');
9 #import('../../frog/lang.dart', prefix:'lang'); 10 #import('../../frog/lib/node/node.dart');
10 #import('css.dart'); 11 #import('css.dart');
11 12
12 FileSystem files; 13 FileSystem files;
13 14
14 /** Invokes [callback] and returns how long it took to execute in ms. */ 15 /** Invokes [callback] and returns how long it took to execute in ms. */
15 num time(callback()) { 16 num time(callback()) {
16 final watch = new Stopwatch(); 17 final watch = new Stopwatch();
17 watch.start(); 18 watch.start();
18 callback(); 19 callback();
19 watch.stop(); 20 watch.stop();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 76
76 files.writeString(outputFullFn, buff.toString()); 77 files.writeString(outputFullFn, buff.toString());
77 print("Generated file ${outputFullFn}"); 78 print("Generated file ${outputFullFn}");
78 79
79 // Generate CSS.dart file. 80 // Generate CSS.dart file.
80 String genDartClassFile = Generate.dartClass(files, outPath, stylesheet, 81 String genDartClassFile = Generate.dartClass(files, outPath, stylesheet,
81 sourceFilename); 82 sourceFilename);
82 print("Generated file ${genDartClassFile}"); 83 print("Generated file ${genDartClassFile}");
83 } 84 }
84 } 85 }
OLDNEW
« no previous file with comments | « utils/css/tokenkind.dart ('k') | utils/css/tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698