Chromium Code Reviews| Index: tests/standalone/src/io/HttpServerSocketTest.dart |
| diff --git a/tests/standalone/src/io/HttpServerSocketTest.dart b/tests/standalone/src/io/HttpServerSocketTest.dart |
| index d25481010c287fa91063efc7f802f83e90a38745..f3b59c4f940f08767c634ce4b3040d575626d5fd 100644 |
| --- a/tests/standalone/src/io/HttpServerSocketTest.dart |
| +++ b/tests/standalone/src/io/HttpServerSocketTest.dart |
| @@ -172,12 +172,13 @@ void testSocketClose() { |
| void runSettings(int cutoff, |
| bool closeAsError, |
| bool expectError) { |
| - server.onRequest = (HttpRequest request, HttpResponse response) { |
| - request.inputStream.onData = () { |
| - }; |
| - request.inputStream.onClosed = () { |
| - response.outputStream.close(); |
| - }; |
| + server.defaultRequestHandler = |
| + (HttpRequest request, HttpResponse response) { |
| + request.inputStream.onData = () { |
| + }; |
| + request.inputStream.onClosed = () { |
| + response.outputStream.close(); |
| + }; |
| }; |
|
Mads Ager (google)
2012/04/18 12:22:08
Slightly funky indentation. I think I prefer to ad
Søren Gjesse
2012/04/18 13:26:56
Absolutely, done.
|
| if (expectError) { |