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

Unified Diff: tests/language/prefix16_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/operator5_test.dart ('k') | tests/language/private1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/prefix16_test.dart
diff --git a/tests/language/prefix16_test.dart b/tests/language/prefix16_test.dart
index ff248b02e90c1ca04ec7e3358749030973f2e777..15cea9723b36fbde179a8d04d5f5660f42169619 100644
--- a/tests/language/prefix16_test.dart
+++ b/tests/language/prefix16_test.dart
@@ -18,7 +18,7 @@ isCheckedMode() {
var i = 1;
String s = i;
return false;
- } catch(var e) {
+ } catch (e) {
return true;
}
}
@@ -28,7 +28,7 @@ main() {
bool got_type_error = false;
try {
myFunc i = 0;
- } catch (TypeError error) {
+ } on TypeError catch (error) {
got_type_error = true;
}
// Type error in checked mode only.
@@ -39,7 +39,7 @@ main() {
try {
// In production mode, malformed myFunc is mapped to (Dynamic) => Dynamic.
Expect.isTrue(((int x) => x) is myFunc);
- } catch (TypeError error) {
+ } on TypeError catch (error) {
got_type_error = true;
}
// Type error in checked mode only.
« no previous file with comments | « tests/language/operator5_test.dart ('k') | tests/language/private1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698