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

Unified Diff: lib/unittest/unittest.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. 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 | « lib/unittest/core_matchers.dart ('k') | runtime/bin/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/unittest.dart
diff --git a/lib/unittest/unittest.dart b/lib/unittest/unittest.dart
index 9a7925c29165f28cfa9af59c996b56670f87a451..f1f0a98a4bcb772e1a71502303dece52efd8c480 100644
--- a/lib/unittest/unittest.dart
+++ b/lib/unittest/unittest.dart
@@ -723,7 +723,7 @@ guardAsync(tryBody, [finallyBody, testNum = -1]) {
try {
return tryBody();
} catch (var e, var trace) {
- registerException(testNum, e, trace);
+ _registerException(testNum, e, trace);
} finally {
if (finallyBody != null) finallyBody();
}
@@ -732,7 +732,14 @@ guardAsync(tryBody, [finallyBody, testNum = -1]) {
/**
* Registers that an exception was caught for the current test.
*/
-registerException(testNum, e, [trace]) {
+registerException(e, [trace]) {
+ _registerException(_currentTest, e, trace);
+}
+
+/**
+ * Registers that an exception was caught for the current test.
+ */
+_registerException(testNum, e, [trace]) {
trace = trace == null ? '' : trace.toString();
if (_tests[testNum].result == null) {
String message = (e is ExpectException) ? e.message : 'Caught $e';
« no previous file with comments | « lib/unittest/core_matchers.dart ('k') | runtime/bin/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698