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 && mac-os") | 5 @TestOn("vm && mac-os") |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:test/test.dart'; | 9 import 'package:test/test.dart'; |
10 import 'package:test/src/runner/browser/safari.dart'; | 10 import 'package:test/src/runner/browser/safari.dart'; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 await safari.close(); | 135 await safari.close(); |
136 } finally { | 136 } finally { |
137 server.close(); | 137 server.close(); |
138 } | 138 } |
139 }); | 139 }); |
140 | 140 |
141 test("reports an error in onExit", () { | 141 test("reports an error in onExit", () { |
142 var safari = new Safari("http://dart-lang.org", | 142 var safari = new Safari("http://dart-lang.org", |
143 executable: "_does_not_exist"); | 143 executable: "_does_not_exist"); |
144 expect(safari.onExit, throwsA(isApplicationException(startsWith( | 144 expect(safari.onExit, throwsA(isApplicationException(startsWith( |
145 "Failed to start Safari: $noSuchFileMessage")))); | 145 "Failed to run Safari: $noSuchFileMessage")))); |
146 }); | 146 }); |
147 } | 147 } |
OLD | NEW |