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

Unified Diff: pkg/unittest/lib/unittest.dart

Issue 12335113: Unit test changes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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/lib/src/interfaces.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/unittest.dart
===================================================================
--- pkg/unittest/lib/unittest.dart (revision 19164)
+++ pkg/unittest/lib/unittest.dart (working copy)
@@ -773,7 +773,7 @@
_registerException(testNum, e, [trace]) {
trace = trace == null ? '' : trace.toString();
if (_tests[testNum].result == null) {
- String message = (e is ExpectException) ? e.message : 'Caught $e';
+ String message = (e is TestFailure) ? e.message : 'Caught $e';
_tests[testNum].fail(message, trace);
} else {
_tests[testNum].error('Caught $e', trace);
@@ -829,7 +829,7 @@
}
void fail(String message) {
- throw new ExpectException(message);
+ throw new TestFailure(message);
}
/**
@@ -891,4 +891,4 @@
void disableTest(int testId) => _setTestEnabledState(testId, false);
/** Signature for a test function. */
-typedef void TestFunction();
+typedef dynamic TestFunction();
« no previous file with comments | « pkg/unittest/lib/src/interfaces.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698