| 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 test("gets a source asset", () { | 16 test("gets a source asset", () { |
| 18 initGraph(["app|foo.txt"]); | 17 initGraph(["app|foo.txt"]); |
| 19 updateSources(["app|foo.txt"]); | 18 updateSources(["app|foo.txt"]); |
| 20 expectAsset("app|foo.txt"); | 19 expectAsset("app|foo.txt"); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 resumeProvider(); | 132 resumeProvider(); |
| 134 | 133 |
| 135 buildShouldSucceed(); | 134 buildShouldSucceed(); |
| 136 waitForBuild(); | 135 waitForBuild(); |
| 137 | 136 |
| 138 schedule(() { | 137 schedule(() { |
| 139 expect(transformer.numRuns, equals(2)); | 138 expect(transformer.numRuns, equals(2)); |
| 140 }); | 139 }); |
| 141 }); | 140 }); |
| 142 } | 141 } |
| OLD | NEW |