| Index: test/runner/browser/safari_test.dart
|
| diff --git a/test/runner/browser/safari_test.dart b/test/runner/browser/safari_test.dart
|
| index f0422413a53fcbf56ee8b94b4c3fc7b51f63ba32..4aa58fc40152413f090099df4bdacce038c02060 100644
|
| --- a/test/runner/browser/safari_test.dart
|
| +++ b/test/runner/browser/safari_test.dart
|
| @@ -14,6 +14,8 @@ import 'package:shelf/shelf.dart' as shelf;
|
| import 'package:shelf/shelf_io.dart' as shelf_io;
|
| import 'package:shelf_web_socket/shelf_web_socket.dart';
|
|
|
| +import '../../utils.dart';
|
| +
|
| void main() {
|
| group("running JavaScript", () {
|
| // The JavaScript to serve in the server. We use actual JavaScript here to
|
| @@ -135,6 +137,7 @@ webSocket.addEventListener("open", function() {
|
| test("reports an error in onExit", () {
|
| var safari = new Safari("http://dart-lang.org",
|
| executable: "_does_not_exist");
|
| - expect(safari.onExit, throwsA(new isInstanceOf<ProcessException>()));
|
| + expect(safari.onExit, throwsA(isApplicationException(startsWith(
|
| + "Failed to start Safari: No such file or directory"))));
|
| });
|
| }
|
|
|