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

Unified Diff: tests/language/execute_finally9_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_finally8_test.dart ('k') | tests/language/expect_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/execute_finally9_test.dart
diff --git a/tests/language/execute_finally9_test.dart b/tests/language/execute_finally9_test.dart
index 6ed739a36ccce89254464b133bac4b52c62a6a71..19108daf2e3e712d4c793e41c25addb331f53b90 100644
--- a/tests/language/execute_finally9_test.dart
+++ b/tests/language/execute_finally9_test.dart
@@ -12,7 +12,7 @@ class Hello {
try {
sum += 1;
return 'hi';
- } catch (var e) {
+ } catch (e) {
sum += 1;
throw 'ball';
sum += 1;
@@ -30,7 +30,7 @@ class Hello {
try {
sum += 1;
return 'hi';
- } catch (var ex) {
+ } catch (ex) {
sum += 1;
} finally {
try {
@@ -39,7 +39,7 @@ class Hello {
break L;
sum += 1;
}
- } catch (var ex) {
+ } catch (ex) {
sum += 1;
} finally {
sum += 1;
@@ -53,7 +53,8 @@ class Hello {
Expect.equals(3, sum);
try {
foo();
- } catch (var e) {
+ } catch (e) {
+ // Ignore.
}
Expect.equals(2, sum);
}
« no previous file with comments | « tests/language/execute_finally8_test.dart ('k') | tests/language/expect_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698