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

Unified Diff: lib/unittest/test_case.dart

Issue 10692176: Wire up onTestResult callbacks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/test_case.dart
===================================================================
--- lib/unittest/test_case.dart (revision 9562)
+++ lib/unittest/test_case.dart (working copy)
@@ -67,17 +67,20 @@
void pass() {
result = _PASS;
+ _config.onTestResult(this);
}
void fail(String message, String stackTrace) {
result = _FAIL;
this.message = message;
this.stackTrace = stackTrace;
+ _config.onTestResult(this);
}
void error(String message, String stackTrace) {
result = _ERROR;
this.message = message;
this.stackTrace = stackTrace;
+ _config.onTestResult(this);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698