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

Side by Side Diff: test/mixin_test.dart

Issue 1131243005: pkg/csslib: use pkg/test and allow latest version of logging pkg (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « test/extend_test.dart ('k') | test/nested_test.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) 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 mixin_test; 5 library mixin_test;
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:test/test.dart';
8
8 import 'testing.dart'; 9 import 'testing.dart';
9 10
10 compileAndValidate(String input, String generated) { 11 compileAndValidate(String input, String generated) {
11 var errors = []; 12 var errors = [];
12 var stylesheet = compileCss(input, errors: errors, opts: options); 13 var stylesheet = compileCss(input, errors: errors, opts: options);
13 expect(stylesheet != null, true); 14 expect(stylesheet != null, true);
14 expect(errors.isEmpty, true, reason: errors.toString()); 15 expect(errors.isEmpty, true, reason: errors.toString());
15 expect(prettyPrint(stylesheet), generated); 16 expect(prettyPrint(stylesheet), generated);
16 } 17 }
17 18
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 test('multiple args and var decls as args', mixinManyArgs); 650 test('multiple args and var decls as args', mixinManyArgs);
650 }); 651 });
651 652
652 group('Mixin warnings', () { 653 group('Mixin warnings', () {
653 test('undefined top-level', undefinedTopLevel); 654 test('undefined top-level', undefinedTopLevel);
654 test('undefined declaration', undefinedDeclaration); 655 test('undefined declaration', undefinedDeclaration);
655 test('detect bad top-level as declaration', badDeclarationInclude); 656 test('detect bad top-level as declaration', badDeclarationInclude);
656 test('detect bad declaration as top-level', badTopInclude); 657 test('detect bad declaration as top-level', badTopInclude);
657 }); 658 });
658 } 659 }
OLDNEW
« no previous file with comments | « test/extend_test.dart ('k') | test/nested_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698