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

Unified Diff: sdk/lib/_internal/pub/test/build/includes_dart_files_from_dependencies_in_debug_test.dart

Issue 149213009: Test that .dart files are copied to packages/ in debug mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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")
])
])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698