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

Side by Side Diff: pkg/csslib/test/var_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 var_test; 5 library var_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 void simpleVar() { 12 void simpleVar() {
14 final errors = []; 13 final errors = [];
15 final input = ''':root { 14 final input = ''':root {
16 var-color-background: red; 15 var-color-background: red;
17 var-color-foreground: blue; 16 var-color-foreground: blue;
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 619
621 main() { 620 main() {
622 test('Simple var', simpleVar); 621 test('Simple var', simpleVar);
623 test('Expressions var', expressionsVar); 622 test('Expressions var', expressionsVar);
624 test('Default value in var()', defaultVar); 623 test('Default value in var()', defaultVar);
625 test('CSS Parser only var', parserVar); 624 test('CSS Parser only var', parserVar);
626 test('Var syntax', testVar); 625 test('Var syntax', testVar);
627 test('Cycles var', cyclesVar); 626 test('Cycles var', cyclesVar);
628 test('Less syntax', testLess); 627 test('Less syntax', testLess);
629 } 628 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698