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

Unified Diff: test/runner/browser/content_shell_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/chrome_test.dart ('k') | test/runner/browser/dartium_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/browser/content_shell_test.dart
diff --git a/test/runner/browser/content_shell_test.dart b/test/runner/browser/content_shell_test.dart
index 6d19209864d2f6b6532dec8b58a2c0a6f7938899..f176ca8f421d61dfdc3246de9270cf9e4b448085 100644
--- a/test/runner/browser/content_shell_test.dart
+++ b/test/runner/browser/content_shell_test.dart
@@ -15,6 +15,8 @@ import 'package:test/src/util/io.dart';
import 'package:test/src/utils.dart';
import 'package:test/test.dart';
+import '../../utils.dart';
+
void main() {
group("running Dart", () {
// The Dart to serve in the server.
@@ -141,6 +143,7 @@ webSocket.onOpen.first.then((_) =>
test("reports an error in onExit", () {
var contentShell = new ContentShell("http://dart-lang.org",
executable: "_does_not_exist");
- expect(contentShell.onExit, throwsA(new isInstanceOf<ProcessException>()));
+ expect(contentShell.onExit, throwsA(isApplicationException(startsWith(
+ "Failed to start content shell: No such file or directory"))));
});
}
« no previous file with comments | « test/runner/browser/chrome_test.dart ('k') | test/runner/browser/dartium_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698