| 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'; | |
| 11 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
| 12 | 8 |
| 13 import '../utils.dart'; | 9 import '../utils.dart'; |
| 14 | 10 |
| 15 main() { | 11 main() { |
| 16 initConfig(); | 12 initConfig(); |
| 17 test("gets a source asset", () { | 13 test("gets a source asset", () { |
| 18 initGraph(["app|foo.txt"]); | 14 initGraph(["app|foo.txt"]); |
| 19 updateSources(["app|foo.txt"]); | 15 updateSources(["app|foo.txt"]); |
| 20 expectAsset("app|foo.txt"); | 16 expectAsset("app|foo.txt"); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Now update an asset that does trigger a transformer. | 140 // Now update an asset that does trigger a transformer. |
| 145 updateSources(["app|foo.txt"]); | 141 updateSources(["app|foo.txt"]); |
| 146 | 142 |
| 147 resumeProvider(); | 143 resumeProvider(); |
| 148 | 144 |
| 149 buildShouldSucceed(); | 145 buildShouldSucceed(); |
| 150 | 146 |
| 151 expect(transformer.numRuns, completion(equals(2))); | 147 expect(transformer.numRuns, completion(equals(2))); |
| 152 }); | 148 }); |
| 153 } | 149 } |
| OLD | NEW |