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

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

Issue 23819036: Support for @mixin, @include and @extend (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: mixin w/o parameters 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 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'package:csslib/parser.dart';
9 import 'package:csslib/visitor.dart';
10 import 'testing.dart'; 8 import 'testing.dart';
11 9
12 void simpleVar() { 10 void simpleVar() {
13 final errors = []; 11 final errors = [];
14 final input = ''':root { 12 final input = ''':root {
15 var-color-background: red; 13 var-color-background: red;
16 var-color-foreground: blue; 14 var-color-foreground: blue;
17 15
18 var-a: var(b); 16 var-a: var(b);
19 var-b: var(c); 17 var-b: var(c);
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 main() { 649 main() {
652 test('Simple var', simpleVar); 650 test('Simple var', simpleVar);
653 test('Expressions var', expressionsVar); 651 test('Expressions var', expressionsVar);
654 test('Default value in var()', defaultVar); 652 test('Default value in var()', defaultVar);
655 test('CSS Parser only var', parserVar); 653 test('CSS Parser only var', parserVar);
656 test('Var syntax', testVar); 654 test('Var syntax', testVar);
657 test('Cycles var', cyclesVar); 655 test('Cycles var', cyclesVar);
658 test('Less syntax', testLess); 656 test('Less syntax', testLess);
659 test('Polyfill', polyfill); 657 test('Polyfill', polyfill);
660 } 658 }
OLDNEW
« pkg/csslib/test/mixin_test.dart ('K') | « pkg/csslib/test/mixin_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698