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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/serve/uses_appropriate_mime_types_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:scheduled_test/scheduled_test.dart';
3 import '../descriptor.dart' as d;
4 import '../test_pub.dart';
5 import 'utils.dart';
6 main() {
7 initConfig();
8 integration("uses appropriate mime types", () {
9 d.dir(
10 appPath,
11 [
12 d.appPubspec(),
13 d.dir(
14 "web",
15 [
16 d.file("index.html", "<body>"),
17 d.file("file.dart", "main() => print('hello');"),
18 d.file("file.js", "console.log('hello');"),
19 d.file("file.css", "body {color: blue}")])]).create();
20 pubServe();
21 requestShouldSucceed(
22 "index.html",
23 anything,
24 headers: containsPair('content-type', 'text/html'));
25 requestShouldSucceed(
26 "file.dart",
27 anything,
28 headers: containsPair('content-type', 'application/dart'));
29 requestShouldSucceed(
30 "file.js",
31 anything,
32 headers: containsPair('content-type', 'application/javascript'));
33 requestShouldSucceed(
34 "file.css",
35 anything,
36 headers: containsPair('content-type', 'text/css'));
37 endPubServe();
38 });
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698