Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: test/runner/browser/safari_test.dart

Issue 1094993002: Fix tests and analysis warnings and release 0.12.0-beta.9. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/runner/browser/phantom_js_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"))));
});
}
« no previous file with comments | « test/runner/browser/phantom_js_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698