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

Unified Diff: pkg/unittest/unittest.dart

Issue 10905013: Change a few more uses of the old try-catch syntax. (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 | « pkg/unittest/expect.dart ('k') | tests/language/named_parameters4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/unittest.dart
diff --git a/pkg/unittest/unittest.dart b/pkg/unittest/unittest.dart
index 6eab31ba5c4f63c4a78c92b4658ac641833fd9cc..da99a71d660875c790519f912ba44ae395eab55d 100644
--- a/pkg/unittest/unittest.dart
+++ b/pkg/unittest/unittest.dart
@@ -217,7 +217,7 @@ void expectThrow(function, [bool callback(exception)]) {
bool threw = false;
try {
function();
- } catch (var e) {
+ } catch (e) {
threw = true;
// Also let the callback look at it.
@@ -582,7 +582,7 @@ void group(String description, void body()) {
_testSetup = null;
_testTeardown = null;
body();
- } catch(var e, var trace) {
+ } catch (e, trace) {
_reportTestError(e.toString(), trace == null ? '' : trace.toString());
} finally {
// Now that the group is over, restore the previous one.
@@ -723,7 +723,7 @@ guardAsync(tryBody, [finallyBody, testNum = -1]) {
if (testNum < 0) testNum = _currentTest;
try {
return tryBody();
- } catch (var e, var trace) {
+ } catch (e, trace) {
_registerException(testNum, e, trace);
} finally {
if (finallyBody != null) finallyBody();
« no previous file with comments | « pkg/unittest/expect.dart ('k') | tests/language/named_parameters4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698