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

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

Issue 15350003: Fix unittest for dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « pkg/unittest/test/matchers_test.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/pretty_print_test.dart
diff --git a/pkg/unittest/test/pretty_print_test.dart b/pkg/unittest/test/pretty_print_test.dart
index f17040a89222d0f4cb4b7abfc9b148d895c8f09c..7d5eda90ae8b17dbba8a562de4a91df246baad8a 100644
--- a/pkg/unittest/test/pretty_print_test.dart
+++ b/pkg/unittest/test/pretty_print_test.dart
@@ -27,7 +27,8 @@ void main() {
expect(prettyPrint(12.13), equals('<12.13>'));
expect(prettyPrint(true), equals('<true>'));
expect(prettyPrint(null), equals('<null>'));
- expect(prettyPrint(() => 12), equals('<Closure: (dynamic) => dynamic>'));
+ expect(prettyPrint(() => 12),
+ matches(r'<Closure(: \(dynamic\) => dynamic)?>'));
});
test('with an object with a default [toString]', () {
« no previous file with comments | « pkg/unittest/test/matchers_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698