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

Unified Diff: tests/language/math_vm_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/map_literal4_test.dart ('k') | tests/language/method_invocation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/math_vm_test.dart
diff --git a/tests/language/math_vm_test.dart b/tests/language/math_vm_test.dart
index afc975caf3227c50c2d0620da9423b0bfef5776a..e8314f5c9369d7bb48ce73c34925eec67d2bf3da 100644
--- a/tests/language/math_vm_test.dart
+++ b/tests/language/math_vm_test.dart
@@ -18,7 +18,7 @@ class MathTest {
try {
parseInt(x); // Expects string.
return true;
- } catch (var e) {
+ } catch (e) {
return false;
}
}
@@ -27,7 +27,7 @@ class MathTest {
try {
sqrt(x); // Expects number.
return true;
- } catch (var e) {
+ } catch (e) {
return false;
}
}
« no previous file with comments | « tests/language/map_literal4_test.dart ('k') | tests/language/method_invocation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698