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

Unified Diff: third_party/pkg/barback-0.13.0/test/transformer/check_content_and_rename.dart

Issue 291843011: Run pub tests against older versions of barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/barback-0.13.0/test/transformer/check_content_and_rename.dart
diff --git a/pkg/barback/test/transformer/check_content_and_rename.dart b/third_party/pkg/barback-0.13.0/test/transformer/check_content_and_rename.dart
similarity index 75%
copy from pkg/barback/test/transformer/check_content_and_rename.dart
copy to third_party/pkg/barback-0.13.0/test/transformer/check_content_and_rename.dart
index dffad3798e39f296680c754bfd79ecbc9decb8a4..9fcdebb6c0e50a9b14c5280fc30e36afb6d10c26 100644
--- a/pkg/barback/test/transformer/check_content_and_rename.dart
+++ b/third_party/pkg/barback-0.13.0/test/transformer/check_content_and_rename.dart
@@ -18,15 +18,11 @@ class CheckContentAndRenameTransformer extends MockTransformer {
final String newExtension;
final String newContent;
- CheckContentAndRenameTransformer({this.oldExtension, this.oldContent,
- this.newExtension, this.newContent}) {
- assert(oldExtension != null);
- assert(oldContent != null);
- assert(newExtension != null);
- assert(newContent != null);
- }
+ CheckContentAndRenameTransformer(this.oldExtension, this.oldContent,
+ this.newExtension, this.newContent);
- bool doIsPrimary(AssetId id) => id.extension == '.$oldExtension';
+ Future<bool> doIsPrimary(AssetId id) =>
+ new Future.value(id.extension != '.$oldExtension');
Future doApply(Transform transform) {
return getPrimary(transform).then((input) {

Powered by Google App Engine
This is Rietveld 408576698