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

Unified Diff: sdk/lib/_internal/pub/test/serve/installs_first_if_no_lockfile_test.dart

Issue 21147002: Install before starting the server if the lockfile is out of date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 5 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/serve/installs_first_if_no_lockfile_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/unknown_dependency_test.dart b/sdk/lib/_internal/pub/test/serve/installs_first_if_no_lockfile_test.dart
similarity index 56%
copy from sdk/lib/_internal/pub/test/serve/unknown_dependency_test.dart
copy to sdk/lib/_internal/pub/test/serve/installs_first_if_no_lockfile_test.dart
index 434a84ccfb032f54cae1b11fcfd263800789f3e4..998811354b63d47b6427ed948c44517884cc8b48 100644
--- a/sdk/lib/_internal/pub/test/serve/unknown_dependency_test.dart
+++ b/sdk/lib/_internal/pub/test/serve/installs_first_if_no_lockfile_test.dart
@@ -12,16 +12,18 @@ import 'utils.dart';
main() {
initConfig();
- integration("responds with a 404 unknown dependencies", () {
- d.dir(appPath, [
- d.appPubspec()
+ integration("installs first if there is no lockfile", () {
+ d.dir("foo", [
+ d.libPubspec("foo", "0.0.1"),
+ d.libDir("foo")
]).create();
- startPubServe();
- requestShould404("packages/foo/nope.dart");
- requestShould404("assets/foo/nope.png");
- requestShould404("dir/packages/foo/nope.dart");
- requestShould404("dir/assets/foo/nope.png");
+ d.appDir({
+ "foo": {"path": "../foo"}
+ }).create();
+
+ startPubServe(shouldInstallFirst: true);
+ requestShouldSucceed("packages/foo/foo.dart", 'main() => "foo";');
endPubServe();
});
}

Powered by Google App Engine
This is Rietveld 408576698