| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.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 pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import '../descriptor.dart' as d; | 7 import '../descriptor.dart' as d; |
| 8 import '../test_pub.dart'; | 8 import '../test_pub.dart'; |
| 9 | 9 |
| 10 const TRANSFORMER = """ | 10 const TRANSFORMER = """ |
| 11 import 'dart:async'; | 11 import 'dart:async'; |
| 12 | 12 |
| 13 import 'package:barback/barback.dart'; | 13 import 'package:barback/barback.dart'; |
| 14 import 'package:source_maps/source_maps.dart'; | |
| 15 | 14 |
| 16 class ModeTransformer extends Transformer { | 15 class ModeTransformer extends Transformer { |
| 17 final BarbackSettings settings; | 16 final BarbackSettings settings; |
| 18 ModeTransformer.asPlugin(this.settings); | 17 ModeTransformer.asPlugin(this.settings); |
| 19 | 18 |
| 20 String get allowedExtensions => '.txt'; | 19 String get allowedExtensions => '.txt'; |
| 21 | 20 |
| 22 Future apply(Transform transform) { | 21 Future apply(Transform transform) { |
| 23 return new Future.value().then((_) { | 22 return new Future.value().then((_) { |
| 24 var id = transform.primaryInput.id.changeExtension(".out"); | 23 var id = transform.primaryInput.id.changeExtension(".out"); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 52 d.dir(appPath, [ | 51 d.dir(appPath, [ |
| 53 d.dir('build', [ | 52 d.dir('build', [ |
| 54 d.dir('web', [ | 53 d.dir('web', [ |
| 55 d.file('foo.out', 'depeche') | 54 d.file('foo.out', 'depeche') |
| 56 ]) | 55 ]) |
| 57 ]) | 56 ]) |
| 58 ]).validate(); | 57 ]).validate(); |
| 59 }); | 58 }); |
| 60 }); | 59 }); |
| 61 } | 60 } |
| OLD | NEW |