| Index: test/runner/browser/firefox_test.dart
|
| diff --git a/test/runner/browser/firefox_test.dart b/test/runner/browser/firefox_test.dart
|
| index 6453f0dd53c470db1f0b20a94bbd0b6b8d5600d5..437171b47b53b5c17f500e5f916a5adad9c75cca 100644
|
| --- a/test/runner/browser/firefox_test.dart
|
| +++ b/test/runner/browser/firefox_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 firefox = new Firefox("http://dart-lang.org",
|
| executable: "_does_not_exist");
|
| - expect(firefox.onExit, throwsA(new isInstanceOf<ProcessException>()));
|
| + expect(firefox.onExit, throwsA(isApplicationException(startsWith(
|
| + "Failed to start Firefox: No such file or directory"))));
|
| });
|
| }
|
|
|