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

Side by Side Diff: samples/tests/samples/src/chat/HttpTest.dart

Issue 8274034: Make the sample tests run using the standard test configuration (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « samples/tests/samples/src/chat/HttpParserTest.dart ('k') | samples/tests/samples/testcfg.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("http_test.dart"); 5 #library("http_test.dart");
6 #import("../../../chat/http.dart"); 6 #import("../../../../chat/http.dart");
7 #import("../../../../client/json/dart_json.dart"); 7 #import("../../../../../client/json/dart_json.dart");
8 #import("../../../chat/chat_server_lib.dart"); 8 #import("../../../../chat/chat_server_lib.dart");
9 9
10 10
11 class TestServerMain { 11 class TestServerMain {
12 TestServerMain() 12 TestServerMain()
13 : _statusPort = new ReceivePort(), 13 : _statusPort = new ReceivePort(),
14 _serverPort = null { 14 _serverPort = null {
15 new TestServer().spawn().then((SendPort port) { 15 new TestServer().spawn().then((SendPort port) {
16 _serverPort = port; 16 _serverPort = port;
17 }); 17 });
18 } 18 }
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 280 }
281 281
282 282
283 void main() { 283 void main() {
284 testStartStop(); 284 testStartStop();
285 testGET(); 285 testGET();
286 testPOST(true); 286 testPOST(true);
287 testPOST(false); 287 testPOST(false);
288 test404(); 288 test404();
289 } 289 }
OLDNEW
« no previous file with comments | « samples/tests/samples/src/chat/HttpParserTest.dart ('k') | samples/tests/samples/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698