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

Unified Diff: pkg/unittest/test/unittest_test.dart

Issue 18191019: Changed the code for running a test case to make beter use of dart:async. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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
« pkg/unittest/lib/src/test_case.dart ('K') | « pkg/unittest/lib/src/test_case.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/unittest_test.dart
===================================================================
--- pkg/unittest/test/unittest_test.dart (revision 24610)
+++ pkg/unittest/test/unittest_test.dart (working copy)
@@ -406,8 +406,8 @@
'single correct test': buildStatusString(1, 0, 0, 'single correct test'),
'single failing test': buildStatusString(0, 1, 0, 'single failing test',
message: 'Expected: <5> Actual: <4>'),
- 'exception test': buildStatusString(0, 1, 0, 'exception test',
- message: 'Caught Exception: Fail.'),
+ 'exception test': buildStatusString(0, 0, 1, 'exception test',
+ message: 'Test failed: Caught Exception: Fail.'),
'group name test': buildStatusString(2, 0, 0, 'a a::a b b'),
'setup test': buildStatusString(1, 0, 0, 'a setup test',
count: 0, setup: 'setup'),
@@ -430,12 +430,12 @@
'testOne::testTwo:Expected: false Actual: <true>:testThree'),
'async setup/teardown test': buildStatusString(2, 0, 3,
'good setup/good teardown foo1::'
- 'good setup/bad teardown foo2:good setup/bad teardown '
- 'foo2: Test teardown failed: Failed to complete tearDown:'
- 'bad setup/good teardown foo3:bad setup/good teardown '
- 'foo3: Test setup failed: Failed to complete setUp:'
- 'bad setup/bad teardown foo4:bad setup/bad teardown '
- 'foo4: Test teardown failed: Failed to complete tearDown:'
+ 'good setup/bad teardown foo2:'
+ 'Teardown failed: Caught Failed to complete tearDown:'
+ 'bad setup/good teardown foo3:'
+ 'Setup failed: Caught Failed to complete setUp:'
+ 'bad setup/bad teardown foo4:'
+ 'Setup failed: Caught Failed to complete setUp:'
'post groups'),
'test returning future': buildStatusString(2, 4, 0,
'successful::'
« pkg/unittest/lib/src/test_case.dart ('K') | « pkg/unittest/lib/src/test_case.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698