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

Unified Diff: tests/compiler/dart2js_foreign/native_exceptions1_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
Index: tests/compiler/dart2js_foreign/native_exceptions1_test.dart
diff --git a/tests/compiler/dart2js_foreign/native_exceptions1_test.dart b/tests/compiler/dart2js_foreign/native_exceptions1_test.dart
index da3c028c108d6918c9e2dfca280bae46651dbffb..0368c5842a857f9f726b18a04e4b2ce5b5e0f0dd 100644
--- a/tests/compiler/dart2js_foreign/native_exceptions1_test.dart
+++ b/tests/compiler/dart2js_foreign/native_exceptions1_test.dart
@@ -76,7 +76,7 @@ main() {
bool threw = false;
try {
var x = a.op(51);
- } catch (var e) {
+ } catch (e) {
threw = true;
Expect.equals(100, e.code);
Expect.isTrue(e is E);
@@ -94,7 +94,7 @@ main() {
threw = false;
try {
var x = aa.op(51);
- } catch (E e) {
+ } on E catch (e) {
threw = true;
Expect.equals(100, e.code);
Expect.isTrue(e is E);

Powered by Google App Engine
This is Rietveld 408576698