OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 @TestOn("vm") | 5 @TestOn("vm") |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | |
9 | 8 |
10 import 'package:shelf/shelf.dart' as shelf; | 9 import 'package:shelf/shelf.dart' as shelf; |
11 import 'package:shelf/shelf_io.dart' as shelf_io; | 10 import 'package:shelf/shelf_io.dart' as shelf_io; |
12 import 'package:shelf_web_socket/shelf_web_socket.dart'; | 11 import 'package:shelf_web_socket/shelf_web_socket.dart'; |
13 import 'package:test/src/runner/browser/dartium.dart'; | 12 import 'package:test/src/runner/browser/dartium.dart'; |
14 import 'package:test/src/util/io.dart'; | 13 import 'package:test/src/util/io.dart'; |
15 import 'package:test/src/utils.dart'; | 14 import 'package:test/src/utils.dart'; |
16 import 'package:test/test.dart'; | 15 import 'package:test/test.dart'; |
17 | 16 |
18 import '../../utils.dart'; | 17 import '../../utils.dart'; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 }); | 133 }); |
135 }); | 134 }); |
136 | 135 |
137 test("reports an error in onExit", () { | 136 test("reports an error in onExit", () { |
138 var dartium = new Dartium("http://dart-lang.org", | 137 var dartium = new Dartium("http://dart-lang.org", |
139 executable: "_does_not_exist"); | 138 executable: "_does_not_exist"); |
140 expect(dartium.onExit, throwsA(isApplicationException(startsWith( | 139 expect(dartium.onExit, throwsA(isApplicationException(startsWith( |
141 "Failed to start Dartium: No such file or directory")))); | 140 "Failed to start Dartium: No such file or directory")))); |
142 }); | 141 }); |
143 } | 142 } |
OLD | NEW |