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

Unified Diff: sdk/lib/_internal/pub_generated/test/transformer/loads_different_configurations_from_the_same_isolate_test.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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_generated/test/transformer/loads_different_configurations_from_the_same_isolate_test.dart
diff --git a/sdk/lib/_internal/pub_generated/test/transformer/loads_different_configurations_from_the_same_isolate_test.dart b/sdk/lib/_internal/pub_generated/test/transformer/loads_different_configurations_from_the_same_isolate_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bb6443053b69d6272f870adadfc0b85a40e76cc4
--- /dev/null
+++ b/sdk/lib/_internal/pub_generated/test/transformer/loads_different_configurations_from_the_same_isolate_test.dart
@@ -0,0 +1,57 @@
+library pub_tests;
+import '../descriptor.dart' as d;
+import '../test_pub.dart';
+import '../serve/utils.dart';
+main() {
+ initConfig();
+ withBarbackVersions("any", () {
+ integration("loads different configurations from the same isolate", () {
+ d.dir("foo", [d.pubspec({
+ "name": "foo",
+ "version": "1.0.0",
+ "transformers": [{
+ "foo/first": {
+ "addition": " in foo"
+ }
+ }, "foo/second"]
+ }),
+ d.dir(
+ "lib",
+ [
+ d.file("first.dart", dartTransformer('foo/first')),
+ d.file("second.dart", dartTransformer('foo/second'))])]).create();
+ d.dir(appPath, [d.pubspec({
+ "name": "myapp",
+ "transformers": [{
+ "foo/first": {
+ "addition": " in myapp",
+ "\$include": "web/first.dart"
+ }
+ }, {
+ "foo/second": {
+ "\$include": "web/second.dart"
+ }
+ }],
+ "dependencies": {
+ 'foo': {
+ 'path': '../foo'
+ }
+ }
+ }),
+ d.dir(
+ "web",
+ [
+ d.file("first.dart", 'const TOKEN = "myapp/first";'),
+ d.file("second.dart", 'const TOKEN = "myapp/second";')])]).create();
+ createLockFile('myapp', sandbox: ['foo'], pkg: ['barback']);
+ pubServe();
+ requestShouldSucceed(
+ "first.dart",
+ 'const TOKEN = "(myapp/first, foo/first in myapp)";');
+ requestShouldSucceed(
+ "second.dart",
+ 'const TOKEN = "(myapp/second, (foo/second, foo/first in foo))";');
+ endPubServe();
+ });
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698