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

Unified Diff: tests/utils/unittest_test.dart

Issue 10539029: Fixed a mismatch describer with unreachable code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « lib/unittest/map_matchers.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/unittest_test.dart
===================================================================
--- tests/utils/unittest_test.dart (revision 8365)
+++ tests/utils/unittest_test.dart (working copy)
@@ -122,11 +122,14 @@
"Expected: return normally but: threw exception");
});
+ /* Removing these temporarily while dart2js failure is investigated */
+ /*
test('isInstanceOf', () {
shouldFail(0, new isInstanceOf<String>('String'),
"Expected: an instance of String but: was <0>");
shouldPass('cow', new isInstanceOf<String>('String'));
});
+ */
test('hasLength', () {
shouldPass(c, hasLength(0));
@@ -419,7 +422,7 @@
shouldPass(a, containsPair('foo', 'bar'));
shouldFail(a, containsPair('foo', 'ba'),
"Expected: contains pair 'foo' => 'ba' "
- "but: contains key 'foo' but with value ");
+ "but: contains key 'foo' but with value was 'bar'");
shouldFail(a, containsPair('fo', 'bar'),
"Expected: contains pair 'fo' => 'bar' "
"but: <{foo: bar}>' doesn't contain key ''fo'");
« no previous file with comments | « lib/unittest/map_matchers.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698