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

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

Issue 22909059: Some more removals of dart:utf. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change ArgumentError to FormatException. Created 7 years, 3 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
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 'dart:utf';
8 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
9 import 'package:csslib/parser.dart'; 8 import 'package:csslib/parser.dart';
10 import 'package:csslib/visitor.dart'; 9 import 'package:csslib/visitor.dart';
11 import 'testing.dart'; 10 import 'testing.dart';
12 11
13 class ClassVisitor extends Visitor { 12 class ClassVisitor extends Visitor {
14 final List expectedClasses; 13 final List expectedClasses;
15 final Set<String> foundClasses = new Set(); 14 final Set<String> foundClasses = new Set();
16 15
17 ClassVisitor(this.expectedClasses); 16 ClassVisitor(this.expectedClasses);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 expect(errors.isEmpty, true, reason: errors.toString()); 104 expect(errors.isEmpty, true, reason: errors.toString());
106 105
107 final emitted = polyfillPrint('myComponent', s); 106 final emitted = polyfillPrint('myComponent', s);
108 expect(emitted, generated); 107 expect(emitted, generated);
109 } 108 }
110 109
111 main() { 110 main() {
112 test('Class Visitors', testClassVisitors); 111 test('Class Visitors', testClassVisitors);
113 test('Polyfill', testPolyFill); 112 test('Polyfill', testPolyFill);
114 } 113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698