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

Unified Diff: tests/corelib/core_runtime_types_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/corelib/const_list_literal_test.dart ('k') | tests/corelib/exception_implementation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/core_runtime_types_test.dart
diff --git a/tests/corelib/core_runtime_types_test.dart b/tests/corelib/core_runtime_types_test.dart
index dc7dffe82f742eacaafa7f1f2fd8739df9143cf5..45d3a238513ecd6940ff3f5dc60dcb6dc62386a6 100644
--- a/tests/corelib/core_runtime_types_test.dart
+++ b/tests/corelib/core_runtime_types_test.dart
@@ -47,7 +47,7 @@ class CoreRuntimeTypesTest {
static assertTypeError(void f()) {
try {
f();
- } catch (var exception) {
+ } catch (exception) {
Expect.equals(true, (exception is TypeError) ||
(exception is NoSuchMethodException) ||
(exception is NullPointerException) ||
@@ -150,11 +150,11 @@ class CoreRuntimeTypesTest {
try {
y.toRadixString(0);
Expect.fail("Illegal radix 0 accepted.");
- } catch (var e) { }
+ } catch (e) { }
try {
y.toRadixString(-1);
Expect.fail("Illegal radix -1 accepted.");
- } catch (var e) { }
+ } catch (e) { }
}
static testStringOperators() {
« no previous file with comments | « tests/corelib/const_list_literal_test.dart ('k') | tests/corelib/exception_implementation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698