| OLD | NEW |
| 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 barback.test.asset_graph.source_test; | 5 library barback.test.package_graph.source_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
| 10 import 'package:barback/src/asset_graph.dart'; | |
| 11 import 'package:scheduled_test/scheduled_test.dart'; | 10 import 'package:scheduled_test/scheduled_test.dart'; |
| 12 | 11 |
| 13 import '../utils.dart'; | 12 import '../utils.dart'; |
| 14 | 13 |
| 15 main() { | 14 main() { |
| 16 initConfig(); | 15 initConfig(); |
| 17 | 16 |
| 18 test("errors if two transformers output the same file", () { | 17 test("errors if two transformers output the same file", () { |
| 19 initGraph(["app|foo.a"], {"app": [ | 18 initGraph(["app|foo.a"], {"app": [ |
| 20 [ | 19 [ |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 schedule(() { | 166 schedule(() { |
| 168 updateSources(["pkg1|foo.txt", "pkg2|foo.txt"]); | 167 updateSources(["pkg1|foo.txt", "pkg2|foo.txt"]); |
| 169 }); | 168 }); |
| 170 | 169 |
| 171 buildShouldFail([ | 170 buildShouldFail([ |
| 172 equals(BadTransformer.ERROR), | 171 equals(BadTransformer.ERROR), |
| 173 equals(BadTransformer.ERROR) | 172 equals(BadTransformer.ERROR) |
| 174 ]); | 173 ]); |
| 175 }); | 174 }); |
| 176 } | 175 } |
| OLD | NEW |