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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/serve/missing_file_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library pub_tests;
2 import 'package:path/path.dart' as path;
3 import 'package:scheduled_test/scheduled_test.dart';
4 import '../../lib/src/io.dart';
5 import '../descriptor.dart' as d;
6 import '../test_pub.dart';
7 import 'utils.dart';
8 main() {
9 initConfig();
10 integration("responds with a 404 for missing source files", () {
11 d.dir(
12 appPath,
13 [
14 d.appPubspec(),
15 d.dir("lib", [d.file("nope.dart", "nope")]),
16 d.dir("web", [d.file("index.html", "<body>")])]).create();
17 pubServe();
18 schedule(() {
19 deleteEntry(path.join(sandboxDir, appPath, "lib", "nope.dart"));
20 deleteEntry(path.join(sandboxDir, appPath, "web", "index.html"));
21 }, "delete files");
22 requestShould404("index.html");
23 requestShould404("packages/myapp/nope.dart");
24 requestShould404("dir/packages/myapp/nope.dart");
25 endPubServe();
26 });
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698