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

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

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/string_matchers.dart ('k') | pkg/unittest/lib/unittest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/src/test_case.dart
===================================================================
--- pkg/unittest/lib/src/test_case.dart (revision 0)
+++ pkg/unittest/lib/src/test_case.dart (working copy)
@@ -105,7 +105,7 @@
_complete();
}
- void fail(String messageText, String stack) {
+ void fail(String messageText, [String stack = '']) {
if (result != null) {
if (result == PASS) {
error('Test failed after initially passing: $messageText', stack);
@@ -120,7 +120,7 @@
}
}
- void error(String messageText, String stack) {
+ void error(String messageText, [String stack = '']) {
result = ERROR;
message = messageText;
stackTrace = stack;
« no previous file with comments | « pkg/unittest/lib/src/string_matchers.dart ('k') | pkg/unittest/lib/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698