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

Unified Diff: tests/language/void_type_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/type_vm_test.dart ('k') | tests/lib/math/math2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/void_type_test.dart
diff --git a/tests/language/void_type_test.dart b/tests/language/void_type_test.dart
index a5ba9396dc38be9ce2962609aec46180e22192ca..5d52f0b7f9ecc86cc9ce06aaa7dd1b7a07fb0786 100644
--- a/tests/language/void_type_test.dart
+++ b/tests/language/void_type_test.dart
@@ -8,7 +8,7 @@ isCheckedMode() {
var i = 1;
String s = i;
return false;
- } catch(var e) {
+ } catch (e) {
return true;
}
}
@@ -37,7 +37,7 @@ void test(int n, void func(), bool must_get_error) {
bool got_type_error = false;
try {
var x = func();
- } catch (TypeError error) {
+ } on TypeError catch (error) {
got_type_error = true;
}
// Never a type error in production mode.
@@ -60,7 +60,7 @@ void test(int n, void func(), bool must_get_error) {
case 4: x = f_dyn_1(); break;
case 5: x = f_f(); break;
}
- } catch (TypeError error) {
+ } on TypeError catch (error) {
got_type_error = true;
}
// Never a type error in production mode.
« no previous file with comments | « tests/language/type_vm_test.dart ('k') | tests/lib/math/math2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698