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

Unified Diff: tests/corelib/queue_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/queue_iterator_test.dart ('k') | tests/corelib/reg_exp4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/queue_test.dart
diff --git a/tests/corelib/queue_test.dart b/tests/corelib/queue_test.dart
index 0d42b99101ff13825b1c9d4b7c3a7180ccef7f50..c49f5179d8a31ec7ae0c9c2b9c3be19cafcc5d55 100644
--- a/tests/corelib/queue_test.dart
+++ b/tests/corelib/queue_test.dart
@@ -73,7 +73,7 @@ class QueueTest {
var exception = null;
try {
queue.removeFirst();
- } catch (EmptyQueueException e) {
+ } on EmptyQueueException catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -82,7 +82,7 @@ class QueueTest {
exception = null;
try {
queue.removeLast();
- } catch (EmptyQueueException e) {
+ } on EmptyQueueException catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
« no previous file with comments | « tests/corelib/queue_iterator_test.dart ('k') | tests/corelib/reg_exp4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698