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

Unified Diff: tests/language/expect_test.dart

Issue 10891020: Update almost all tests (except co19) to use the new try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. Created 8 years, 4 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 | « tests/language/execute_finally9_test.dart ('k') | tests/language/external_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/expect_test.dart
diff --git a/tests/language/expect_test.dart b/tests/language/expect_test.dart
index 00bb9577ae0a15281d59e0851d192de6ca8d0bba..13453f383ac9d8d825f6528b49afab4b6db4ebf6 100644
--- a/tests/language/expect_test.dart
+++ b/tests/language/expect_test.dart
@@ -8,7 +8,7 @@ class ExpectTest {
static testEquals(a) {
try {
Expect.equals("AB", a, "within testEquals");
- } catch (Exception msg) {
+ } on Exception catch (msg) {
print(msg);
return;
}
@@ -19,7 +19,7 @@ class ExpectTest {
static testIsTrue(f) {
try {
Expect.isTrue(f);
- } catch (Exception msg) {
+ } on Exception catch (msg) {
print(msg);
return;
}
@@ -30,7 +30,7 @@ class ExpectTest {
static testIsFalse(t) {
try {
Expect.isFalse(t);
- } catch (Exception msg) {
+ } on Exception catch (msg) {
print(msg);
return;
}
@@ -42,7 +42,7 @@ class ExpectTest {
var ab = "${a}B";
try {
Expect.identical("AB", ab);
- } catch (Exception msg) {
+ } on Exception catch (msg) {
print(msg);
return;
}
@@ -53,7 +53,7 @@ class ExpectTest {
static testFail() {
try {
Expect.fail("fail now");
- } catch (Exception msg) {
+ } on Exception catch (msg) {
print(msg);
return;
}
« no previous file with comments | « tests/language/execute_finally9_test.dart ('k') | tests/language/external_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698