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

Unified Diff: tests/language/operator5_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/operator4_test.dart ('k') | tests/language/prefix16_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/operator5_test.dart
diff --git a/tests/language/operator5_test.dart b/tests/language/operator5_test.dart
index 52c9bcb9894e0c0fc20a29483499c2a5c3edf8e5..3afb2ebe57c73970a4c871b27d7c69e4862aa2f0 100644
--- a/tests/language/operator5_test.dart
+++ b/tests/language/operator5_test.dart
@@ -14,7 +14,7 @@ class A {
equals(a) {
try {
Expect.equals(1, a == a);
- } catch(TypeError e) {
+ } on TypeError catch (e) {
// In checked mode the test doesn't do anything.
}
}
@@ -22,25 +22,25 @@ equals(a) {
less(a) {
try {
Expect.equals(null, a < a);
- } catch(TypeError e) {}
+ } on TypeError catch (e) {}
}
lessEqual(a) {
try {
Expect.equals(499, a <= a);
- } catch(TypeError e) {}
+ } on TypeError catch (e) {}
}
greater(a) {
try {
Expect.equals("foo", a > a);
- } catch(TypeError e) {}
+ } on TypeError catch (e) {}
}
greaterEqual(a) {
try {
Expect.equals(42, a >= a);
- } catch(TypeError e) {}
+ } on TypeError catch (e) {}
}
main() {
« no previous file with comments | « tests/language/operator4_test.dart ('k') | tests/language/prefix16_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698