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

Unified Diff: tests/language/closure_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/closure3_test.dart ('k') | tests/language/code_after_try_is_executed_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/closure_type_test.dart
diff --git a/tests/language/closure_type_test.dart b/tests/language/closure_type_test.dart
index 3438d201e922cfc61e484637c0d1c0ab0cc4b3ae..a3e53e1a60daabca8c3cba83add9d7d58c7ee55e 100644
--- a/tests/language/closure_type_test.dart
+++ b/tests/language/closure_type_test.dart
@@ -16,7 +16,7 @@ isCheckedMode() {
var i = 1;
String s = i;
return false;
- } catch(var e) {
+ } catch (e) {
return true;
}
}
@@ -33,7 +33,7 @@ void test(int func(int value), int value) {
// Therefore, eliminating the run-time type check would be wrong.
int x = func(value);
Expect.equals(value, x * x);
- } catch (TypeError error) {
+ } on TypeError catch (error) {
got_type_error = true;
}
// Type error expected in checked mode only.
« no previous file with comments | « tests/language/closure3_test.dart ('k') | tests/language/code_after_try_is_executed_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698