| OLD | NEW |
| 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 // Tests socket exceptions. | 5 // Tests socket exceptions. |
| 6 | 6 |
| 7 #import("dart:io"); | 7 #import("dart:io"); |
| 8 | 8 |
| 9 class SocketExceptionTest { | 9 class SocketExceptionTest { |
| 10 | 10 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 Expect.equals(true, !wrongExceptionCaught); | 165 Expect.equals(true, !wrongExceptionCaught); |
| 166 | 166 |
| 167 server.close(); | 167 server.close(); |
| 168 client.close(); | 168 client.close(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 static void testMain() { | 171 static void testMain() { |
| 172 serverSocketExceptionTest(); | 172 serverSocketExceptionTest(); |
| 173 clientSocketExceptionTest(); | 173 clientSocketExceptionTest(); |
| 174 indexOutOfRangeExceptionTest(); | 174 indexOutOfRangeExceptionTest(); |
| 175 unknownHostTest(); |
| 176 // TODO(sgjesse): This test seems to fail on the buildbot. |
| 177 //unresponsiveHostTest(); |
| 175 } | 178 } |
| 176 } | 179 } |
| 177 | 180 |
| 178 main() { | 181 main() { |
| 179 SocketExceptionTest.testMain(); | 182 SocketExceptionTest.testMain(); |
| 180 } | 183 } |
| OLD | NEW |