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

Side by Side Diff: pkg/code_transformers/test/entry_point_test.dart

Issue 216233002: pkg/code_transformers: removed unused imports, require latest unittest (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 code_transformers.test.assets_test; 5 library code_transformers.test.assets_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io' show File, Platform;
9 8
10 import 'package:barback/barback.dart'; 9 import 'package:barback/barback.dart';
11 import 'package:code_transformers/resolver.dart'; 10 import 'package:code_transformers/resolver.dart';
12 import 'package:code_transformers/tests.dart'; 11 import 'package:code_transformers/tests.dart';
13 import 'package:path/path.dart' as path;
14 import 'package:unittest/compact_vm_config.dart'; 12 import 'package:unittest/compact_vm_config.dart';
15 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
16 14
17 main() { 15 main() {
18 useCompactVMConfiguration(); 16 useCompactVMConfiguration();
19 17
20 Future checkDartEntry({Map<String, String> inputs, bool expectation}) { 18 Future checkDartEntry({Map<String, String> inputs, bool expectation}) {
21 var transformer = new Validator((transform) { 19 var transformer = new Validator((transform) {
22 return isPossibleDartEntry(transform.primaryInput).then((value) { 20 return isPossibleDartEntry(transform.primaryInput).then((value) {
23 expect(value, expectation); 21 expect(value, expectation);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 final Function validation; 97 final Function validation;
100 98
101 Validator(this.validation); 99 Validator(this.validation);
102 100
103 Future<bool> isPrimary(Asset input) => new Future.value(true); 101 Future<bool> isPrimary(Asset input) => new Future.value(true);
104 102
105 Future apply(Transform transform) { 103 Future apply(Transform transform) {
106 return new Future.value(validation(transform)); 104 return new Future.value(validation(transform));
107 } 105 }
108 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698