| 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.package_graph.source_test; | 5 library barback.test.package_graph.source_test; |
| 6 | 6 |
| 7 import 'dart:async'; | |
| 8 | |
| 9 import 'package:barback/barback.dart'; | |
| 10 import 'package:barback/src/utils.dart'; | 7 import 'package:barback/src/utils.dart'; |
| 11 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
| 12 | 9 |
| 13 import '../utils.dart'; | 10 import '../utils.dart'; |
| 14 | 11 |
| 15 main() { | 12 main() { |
| 16 initConfig(); | 13 initConfig(); |
| 17 | 14 |
| 18 test("errors if two transformers output the same file", () { | 15 test("errors if two transformers output the same file", () { |
| 19 initGraph(["app|foo.a"], {"app": [ | 16 initGraph(["app|foo.a"], {"app": [ |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 324 |
| 328 updateSources(["app|foo.txt"]); | 325 updateSources(["app|foo.txt"]); |
| 329 expectAsset("app|foo.txt", "foo"); | 326 expectAsset("app|foo.txt", "foo"); |
| 330 buildShouldSucceed(); | 327 buildShouldSucceed(); |
| 331 | 328 |
| 332 updateSources(["app|foo.in"]); | 329 updateSources(["app|foo.in"]); |
| 333 expectAsset("app|foo.txt", "foo"); | 330 expectAsset("app|foo.txt", "foo"); |
| 334 buildShouldFail([isAssetCollisionException("app|foo.txt")]); | 331 buildShouldFail([isAssetCollisionException("app|foo.txt")]); |
| 335 }); | 332 }); |
| 336 } | 333 } |
| OLD | NEW |