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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/serve/web_socket/serve_directory_and_immediately_serve_again_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 'dart:async';
3 import 'package:scheduled_test/scheduled_test.dart';
4 import '../../descriptor.dart' as d;
5 import '../../test_pub.dart';
6 import '../utils.dart';
7 main() {
8 initConfig();
9 integration(
10 "binds a directory to a new port and immediately binds that " "directory a gain",
11 () {
12 d.dir(
13 appPath,
14 [
15 d.appPubspec(),
16 d.dir("test", [d.file("index.html", "<test body>")]),
17 d.dir("web", [d.file("index.html", "<body>")])]).create();
18 pubServe(args: ["web"]);
19 schedule(() {
20 return Future.wait([webSocketRequest("serveDirectory", {
21 "path": "test"
22 }), webSocketRequest("serveDirectory", {
23 "path": "test"
24 })]).then((results) {
25 expect(results[0], contains("result"));
26 expect(results[1], contains("result"));
27 expect(results[0]["result"], equals(results[1]["result"]));
28 });
29 });
30 endPubServe();
31 });
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698