Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: pkg/barback/test/package_graph/transform/transform_test.dart

Issue 200983002: Re-run a transform when a secondary input starts existing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/barback/test/package_graph/errors_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/barback/test/package_graph/errors_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698