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

Side by Side Diff: pkg/csslib/test/visitor_test.dart

Issue 64373003: pkg/csslib: types, fixes, cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: more Created 7 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 | « pkg/csslib/test/testing.dart ('k') | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 visitor_test; 5 library visitor_test;
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'package:csslib/parser.dart';
9 import 'package:csslib/visitor.dart'; 8 import 'package:csslib/visitor.dart';
10 import 'testing.dart'; 9 import 'testing.dart';
11 10
12 class ClassVisitor extends Visitor { 11 class ClassVisitor extends Visitor {
13 final List expectedClasses; 12 final List expectedClasses;
14 final Set<String> foundClasses = new Set(); 13 final Set<String> foundClasses = new Set();
15 14
16 ClassVisitor(this.expectedClasses); 15 ClassVisitor(this.expectedClasses);
17 16
18 void visitClassSelector(ClassSelector node) { 17 void visitClassSelector(ClassSelector node) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 expect(errors.isEmpty, true, reason: errors.toString()); 103 expect(errors.isEmpty, true, reason: errors.toString());
105 104
106 final emitted = polyfillPrint('myComponent', s); 105 final emitted = polyfillPrint('myComponent', s);
107 expect(emitted, generated); 106 expect(emitted, generated);
108 } 107 }
109 108
110 main() { 109 main() {
111 test('Class Visitors', testClassVisitors); 110 test('Class Visitors', testClassVisitors);
112 test('Polyfill', testPolyFill); 111 test('Polyfill', testPolyFill);
113 } 112 }
OLDNEW
« no previous file with comments | « pkg/csslib/test/testing.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698