| Index: test/runner/browser/phantom_js_test.dart
|
| diff --git a/test/runner/browser/phantom_js_test.dart b/test/runner/browser/phantom_js_test.dart
|
| index 09a5c6b60e93b0c20c16378c6ba93c66cbc00a3f..fd4ec18d4b78c352d3cb480acf86f4923f7de4de 100644
|
| --- a/test/runner/browser/phantom_js_test.dart
|
| +++ b/test/runner/browser/phantom_js_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
|
| @@ -139,6 +141,7 @@ webSocket.addEventListener("open", function() {
|
| test("reports an error in onExit", () {
|
| var phantomJS = new PhantomJS("http://dart-lang.org",
|
| executable: "_does_not_exist");
|
| - expect(phantomJS.onExit, throwsA(new isInstanceOf<ProcessException>()));
|
| + expect(phantomJS.onExit, throwsA(isApplicationException(startsWith(
|
| + "Failed to start PhantomJS: No such file or directory"))));
|
| });
|
| }
|
|
|