Index: sdk/lib/_internal/pub/test/build/includes_dart_files_from_dependencies_in_debug_test.dart |
diff --git a/sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_in_lib_test.dart b/sdk/lib/_internal/pub/test/build/includes_dart_files_from_dependencies_in_debug_test.dart |
similarity index 53% |
copy from sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_in_lib_test.dart |
copy to sdk/lib/_internal/pub/test/build/includes_dart_files_from_dependencies_in_debug_test.dart |
index 6af3a816f54aba0c86015ca10e68831b40a10fff..f8a719b6dc4fbeb6841d7dc4f723557d4d169a59 100644 |
--- a/sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_in_lib_test.dart |
+++ b/sdk/lib/_internal/pub/test/build/includes_dart_files_from_dependencies_in_debug_test.dart |
@@ -10,7 +10,7 @@ import '../test_pub.dart'; |
main() { |
initConfig(); |
- integration("includes assets from the 'lib' directory of dependencies", () { |
+ integration("includes .dart files from dependencies in debug mode", () { |
// Dart2js can take a long time to compile dart code, so we increase the |
// timeout to cope with that. |
currentSchedule.timeout *= 3; |
@@ -18,9 +18,9 @@ main() { |
d.dir("foo", [ |
d.libPubspec("foo", "0.0.1"), |
d.dir("lib", [ |
- d.file("foo.txt", "foo"), |
+ d.file('foo.dart', 'foo() => print("hello");'), |
d.dir("sub", [ |
- d.file("bar.txt", "bar"), |
+ d.file('bar.dart', 'bar() => print("hello");'), |
]) |
]) |
]).create(); |
@@ -30,45 +30,31 @@ main() { |
"foo": {"path": "../foo"} |
}), |
d.dir("example", [ |
- d.file("index.html", "html"), |
- ]), |
- d.dir("web", [ |
- d.file("index.html", "html"), |
+ d.file("main.dart", 'myapp() => print("not entrypoint");'), |
d.dir("sub", [ |
- d.file("index.html", "html") |
+ d.file("main.dart", 'myapp() => print("not entrypoint");') |
]) |
]) |
]).create(); |
- schedulePub(args: ["build", "--all"], |
- output: new RegExp(r"Built 7 files!")); |
+ schedulePub(args: ["build", "--mode", "debug", "example"], |
+ output: new RegExp(r"Built 4 files!")); |
d.dir(appPath, [ |
d.dir('build', [ |
d.dir('example', [ |
- d.file("index.html", "html"), |
+ d.file("main.dart", 'myapp() => print("not entrypoint");'), |
d.dir('packages', [ |
d.dir('foo', [ |
- d.file('foo.txt', 'foo'), |
- d.dir('sub', [ |
- d.file('bar.txt', 'bar'), |
- ]), |
- ]) |
- ]) |
- ]), |
- d.dir('web', [ |
- d.file("index.html", "html"), |
- d.dir('packages', [ |
- d.dir('foo', [ |
- d.file('foo.txt', 'foo'), |
- d.dir('sub', [ |
- d.file('bar.txt', 'bar'), |
- ]), |
+ d.file('foo.dart', 'foo() => print("hello");'), |
+ d.dir("sub", [ |
+ d.file('bar.dart', 'bar() => print("hello");'), |
+ ]) |
]) |
]), |
d.dir("sub", [ |
- d.file("index.html", "html"), |
- // "packages" should *only* be created in the top-level directory. |
+ d.file("main.dart", 'myapp() => print("not entrypoint");'), |
+ // Does *not* copy packages into subdirectories. |
d.nothing("packages") |
]) |
]) |