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

Unified Diff: utils/tests/string_encoding/dunit.dart

Issue 10887023: Use new try-catch syntax in runtime/, tools/, and utils/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « utils/tests/pub/test_pub.dart ('k') | utils/tests/template/real_app.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/string_encoding/dunit.dart
diff --git a/utils/tests/string_encoding/dunit.dart b/utils/tests/string_encoding/dunit.dart
index 11e0860deb8dd36dad74f9c2926cebf16e4d66ac..02586efed67b54afb48bebc4f328cc5ee6fdd672 100644
--- a/utils/tests/string_encoding/dunit.dart
+++ b/utils/tests/string_encoding/dunit.dart
@@ -103,10 +103,10 @@ class TestClass {
test();
tearDown();
return new PassedTest(description);
- } catch (ExpectException x) {
+ } on ExpectException catch (x) {
tearDown();
return new FailedTest(description, x);
- } catch (var x, var stacktrace) {
+ } catch (x, stacktrace) {
tearDown();
return new TestError(description, x, stacktrace);
}
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | utils/tests/template/real_app.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698