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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/serve/web_socket/url_to_asset_id_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 setUp(() {
9 d.dir(
10 "foo",
11 [
12 d.libPubspec("foo", "0.0.1"),
13 d.dir("lib", [d.file("foo.dart", "foo")])]).create();
14 d.dir(appPath, [d.appPubspec({
15 "foo": {
16 "path": "../foo"
17 }
18 }),
19 d.dir("lib", [d.file("myapp.dart", "myapp")]),
20 d.dir(
21 "test",
22 [d.file("index.html", "<body>"), d.dir("sub", [d.file("bar.html", "bar")])]),
23 d.dir(
24 "web",
25 [
26 d.file("index.html", "<body>"),
27 d.dir("sub", [d.file("bar.html", "bar")])])]).create();
28 });
29 integration("converts URLs to matching asset ids in web/", () {
30 pubServe(shouldGetFirst: true);
31 expectWebSocketResult("urlToAssetId", {
32 "url": getServerUrl("web", "index.html")
33 }, {
34 "package": "myapp",
35 "path": "web/index.html"
36 });
37 endPubServe();
38 });
39 integration(
40 "converts URLs to matching asset ids in subdirectories of web/",
41 () {
42 pubServe(shouldGetFirst: true);
43 expectWebSocketResult("urlToAssetId", {
44 "url": getServerUrl("web", "sub/bar.html")
45 }, {
46 "package": "myapp",
47 "path": "web/sub/bar.html"
48 });
49 endPubServe();
50 });
51 integration("converts URLs to matching asset ids in test/", () {
52 pubServe(shouldGetFirst: true);
53 expectWebSocketResult("urlToAssetId", {
54 "url": getServerUrl("test", "index.html")
55 }, {
56 "package": "myapp",
57 "path": "test/index.html"
58 });
59 endPubServe();
60 });
61 integration(
62 "converts URLs to matching asset ids in subdirectories of test/",
63 () {
64 pubServe(shouldGetFirst: true);
65 expectWebSocketResult("urlToAssetId", {
66 "url": getServerUrl("test", "sub/bar.html")
67 }, {
68 "package": "myapp",
69 "path": "test/sub/bar.html"
70 });
71 endPubServe();
72 });
73 integration(
74 "converts URLs to matching asset ids in the entrypoint's lib/",
75 () {
76 pubServe(shouldGetFirst: true);
77 expectWebSocketResult("urlToAssetId", {
78 "url": getServerUrl("web", "packages/myapp/myapp.dart")
79 }, {
80 "package": "myapp",
81 "path": "lib/myapp.dart"
82 });
83 endPubServe();
84 });
85 integration("converts URLs to matching asset ids in a dependency's lib/", () {
86 pubServe(shouldGetFirst: true);
87 expectWebSocketResult("urlToAssetId", {
88 "url": getServerUrl("web", "packages/foo/foo.dart")
89 }, {
90 "package": "foo",
91 "path": "lib/foo.dart"
92 });
93 endPubServe();
94 });
95 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698