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

Side by Side Diff: tests/standalone/src/io/HttpServerEarlyServerCloseTest.dart

Issue 9958063: Rename Http test to be more specific. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « tests/standalone/src/io/HttpServerEarlyCloseTest.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #import("dart:io"); 1 #import("dart:io");
2 #import("dart:isolate"); 2 #import("dart:isolate");
3 3
4 class Server { 4 class Server {
5 Server() { 5 Server() {
6 HttpServer server = new HttpServer(); 6 HttpServer server = new HttpServer();
7 server.listen("127.0.0.1", 0); 7 server.listen("127.0.0.1", 0);
8 port = server.port; 8 port = server.port;
9 server.onRequest = (HttpRequest request, HttpResponse response) { 9 server.onRequest = (HttpRequest request, HttpResponse response) {
10 new Timer(100, (timer) => server.close()); 10 new Timer(100, (timer) => server.close());
(...skipping 19 matching lines...) Expand all
30 c.onError = (Object exception) { 30 c.onError = (Object exception) {
31 r.close(); 31 r.close();
32 }; 32 };
33 } 33 }
34 } 34 }
35 35
36 main() { 36 main() {
37 Server server = new Server(); 37 Server server = new Server();
38 new Client(server.port); 38 new Client(server.port);
39 } 39 }
OLDNEW
« no previous file with comments | « tests/standalone/src/io/HttpServerEarlyCloseTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698