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

Unified Diff: sdk/lib/_internal/pub/test/transformer/loads_ordering_dependencies_in_the_correct_order_test.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: sdk/lib/_internal/pub/test/transformer/loads_ordering_dependencies_in_the_correct_order_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/loads_ordering_dependencies_in_the_correct_order_test.dart b/sdk/lib/_internal/pub/test/transformer/loads_ordering_dependencies_in_the_correct_order_test.dart
index 70412d4d81313846727e98e7ad3386becd0570c4..7689b6af47e56b60b221c8f040e5b6db80d88af9 100644
--- a/sdk/lib/_internal/pub/test/transformer/loads_ordering_dependencies_in_the_correct_order_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/loads_ordering_dependencies_in_the_correct_order_test.dart
@@ -10,45 +10,47 @@ import '../serve/utils.dart';
main() {
initConfig();
- integration("loads ordering dependencies in the correct order", () {
- d.dir("foo", [
- d.libPubspec("foo", '1.0.0'),
- d.dir("lib", [
- d.file("transformer.dart", dartTransformer('foo'))
- ])
- ]).create();
+ withBarbackVersions("any", () {
+ integration("loads ordering dependencies in the correct order", () {
+ d.dir("foo", [
+ d.libPubspec("foo", '1.0.0'),
+ d.dir("lib", [
+ d.file("transformer.dart", dartTransformer('foo'))
+ ])
+ ]).create();
- d.dir("bar", [
- d.pubspec({
- "name": "bar",
- "version": "1.0.0",
- "transformers": ["foo/transformer"],
- "dependencies": {"foo": {"path": "../foo"}}
- }),
- d.dir("lib", [
- d.file("bar.dart", 'const TOKEN = "bar";')
- ])
- ]).create();
+ d.dir("bar", [
+ d.pubspec({
+ "name": "bar",
+ "version": "1.0.0",
+ "transformers": ["foo/transformer"],
+ "dependencies": {"foo": {"path": "../foo"}}
+ }),
+ d.dir("lib", [
+ d.file("bar.dart", 'const TOKEN = "bar";')
+ ])
+ ]).create();
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": ["myapp/transformer"],
- "dependencies": {"bar": {"path": "../bar"}}
- }),
- d.dir("lib", [
- d.file("transformer.dart", dartTransformer('myapp', import: 'bar'))
- ]),
- d.dir("web", [
- d.file("main.dart", 'const TOKEN = "main.dart";')
- ])
- ]).create();
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": ["myapp/transformer"],
+ "dependencies": {"bar": {"path": "../bar"}}
+ }),
+ d.dir("lib", [
+ d.file("transformer.dart", dartTransformer('myapp', import: 'bar'))
+ ]),
+ d.dir("web", [
+ d.file("main.dart", 'const TOKEN = "main.dart";')
+ ])
+ ]).create();
- createLockFile('myapp', sandbox: ['foo', 'bar'], pkg: ['barback']);
+ createLockFile('myapp', sandbox: ['foo', 'bar'], pkg: ['barback']);
- pubServe();
- requestShouldSucceed("main.dart",
- 'const TOKEN = "(main.dart, myapp imports (bar, foo))";');
- endPubServe();
+ pubServe();
+ requestShouldSucceed("main.dart",
+ 'const TOKEN = "(main.dart, myapp imports (bar, foo))";');
+ endPubServe();
+ });
});
}

Powered by Google App Engine
This is Rietveld 408576698