| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This library contains tests for transformer behavior that relates to actions | 5 // This library contains tests for transformer behavior that relates to actions |
| 6 // happening concurrently or other complex asynchronous timing behavior. | 6 // happening concurrently or other complex asynchronous timing behavior. |
| 7 library barback.test.package_graph.transform.transform_test; | 7 library barback.test.package_graph.transform.transform_test; |
| 8 | 8 |
| 9 import 'package:barback/src/utils.dart'; | 9 import 'package:barback/src/utils.dart'; |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 10 import 'package:scheduled_test/scheduled_test.dart'; |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 updateSources(['app|foo.txt', 'app|bar.txt']); | 362 updateSources(['app|foo.txt', 'app|bar.txt']); |
| 363 expectAsset('app|foo.txt', 'app|bar.txt: true'); | 363 expectAsset('app|foo.txt', 'app|bar.txt: true'); |
| 364 buildShouldSucceed(); | 364 buildShouldSucceed(); |
| 365 | 365 |
| 366 removeSources(['app|bar.txt']); | 366 removeSources(['app|bar.txt']); |
| 367 expectAsset('app|foo.txt', 'app|bar.txt: false'); | 367 expectAsset('app|foo.txt', 'app|bar.txt: false'); |
| 368 buildShouldSucceed(); | 368 buildShouldSucceed(); |
| 369 }); | 369 }); |
| 370 | 370 |
| 371 // TODO(nweiz): enable this when issue 17480 is fixed. | 371 test("re-runs the transformer when an input starts existing", () { |
| 372 // test("re-runs the transformer when an input starts existing", () { | 372 initGraph(["app|foo.txt", "app|bar.txt"], {'app': [ |
| 373 // initGraph(["app|foo.txt", "app|bar.txt"], {'app': [ | 373 [new HasInputTransformer(['app|bar.txt'])] |
| 374 // [new HasInputTransformer(['app|bar.txt'])] | 374 ]}); |
| 375 // ]}); | 375 |
| 376 // | 376 updateSources(['app|foo.txt']); |
| 377 // updateSources(['app|foo.txt']); | 377 expectAsset('app|foo.txt', 'app|bar.txt: false'); |
| 378 // expectAsset('app|foo.txt', 'app|bar.txt: false'); | 378 buildShouldSucceed(); |
| 379 // buildShouldSucceed(); | 379 |
| 380 // | 380 updateSources(['app|bar.txt']); |
| 381 // updateSources(['app|bar.txt']); | 381 expectAsset('app|foo.txt', 'app|bar.txt: true'); |
| 382 // expectAsset('app|foo.txt', 'app|bar.txt: true'); | 382 buildShouldSucceed(); |
| 383 // buildShouldSucceed(); | 383 }); |
| 384 // }); | |
| 385 }); | 384 }); |
| 386 } | 385 } |
| OLD | NEW |