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

Unified Diff: pkg/scheduled_test/test/descriptor/file_test.dart

Issue 16408019: Improved error messages from unittest. (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
« no previous file with comments | « no previous file | pkg/unittest/lib/mock.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/test/descriptor/file_test.dart
===================================================================
--- pkg/scheduled_test/test/descriptor/file_test.dart (revision 24041)
+++ pkg/scheduled_test/test/descriptor/file_test.dart (working copy)
@@ -221,8 +221,8 @@
test('test 2', () {
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.map((e) => e.error.message), equals([
- "Expected: contains 'baaz'\n But: was 'barfoobaz'.\n"
- "Actual: 'barfoobaz'"
+ "Expected: contains 'baaz'\n"
+ " Actual: 'barfoobaz'"
]), verbose: true);
});
}, passing: ['test 2']);
@@ -263,8 +263,7 @@
expect(errors, everyElement(new isInstanceOf<ScheduleError>()));
expect(errors.map((e) => e.error.message), equals([
"Expected: contains <12>\n"
- " But: was [98, 97, 114, 102, 111, 111, 98, 97, 122].\n"
- "Actual: [98, 97, 114, 102, 111, 111, 98, 97, 122]"
+ " Actual: [98, 97, 114, 102, 111, 111, 98, 97, 122]"
]), verbose: true);
});
}, passing: ['test 2']);
« no previous file with comments | « no previous file | pkg/unittest/lib/mock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698