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

Unified Diff: tests/compiler/dart2js_extra/naming_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 | « samples/calculator/tape.dart ('k') | tests/compiler/dart2js_foreign/native_checked_arguments1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/naming_test.dart
diff --git a/tests/compiler/dart2js_extra/naming_test.dart b/tests/compiler/dart2js_extra/naming_test.dart
index b21708e6d3a36ad5de4615c5c5a3d621965c8e49..56c9eb4e21c61fdd590f9bd9404b0c36760872a6 100644
--- a/tests/compiler/dart2js_extra/naming_test.dart
+++ b/tests/compiler/dart2js_extra/naming_test.dart
@@ -213,10 +213,10 @@ class NamingTest {
var caught = false;
try {
throw new MyException();
- } catch (var exc) {
+ } catch (exc) {
try {
throw new MyException();
- } catch (var exc2) {
+ } catch (exc2) {
exc = 9;
}
Expect.equals(9, exc);
@@ -396,7 +396,7 @@ class NamingTest {
var wasCaught = false;
try {
throw new with(0, 0);
- } catch(with e) {
+ } on with catch (e) {
wasCaught = true;
Expect.equals(5, e.x);
}
« no previous file with comments | « samples/calculator/tape.dart ('k') | tests/compiler/dart2js_foreign/native_checked_arguments1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698