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

Side by Side Diff: test/pretty_print_unminified_test.dart

Issue 840133003: matcher: fixed status file, formatting, tweaks to readme (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: nits Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « test/pretty_print_test.dart ('k') | test/prints_matcher_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This file is for pretty-print tests that rely on the names of various Dart 5 // This file is for pretty-print tests that rely on the names of various Dart
6 // types. These tests will fail when run in minified dart2js, since the names 6 // types. These tests will fail when run in minified dart2js, since the names
7 // will be mangled. A version of this file that works in minified dart2js is in 7 // will be mangled. A version of this file that works in minified dart2js is in
8 // pretty_print_minified_test.dart. 8 // pretty_print_minified_test.dart.
9 9
10 library matcher.print_unminified_test; 10 library matcher.print_unminified_test;
(...skipping 24 matching lines...) Expand all
35 expect(prettyPrint(new DefaultToString()), 35 expect(prettyPrint(new DefaultToString()),
36 equals("<Instance of 'DefaultToString'>")); 36 equals("<Instance of 'DefaultToString'>"));
37 }); 37 });
38 38
39 test('with a custom [toString]', () { 39 test('with a custom [toString]', () {
40 expect(prettyPrint(new CustomToString()), 40 expect(prettyPrint(new CustomToString()),
41 equals('CustomToString:<string representation>')); 41 equals('CustomToString:<string representation>'));
42 }); 42 });
43 43
44 test('with a custom [toString] and a private name', () { 44 test('with a custom [toString] and a private name', () {
45 expect(prettyPrint(new _PrivateName()), 45 expect(
46 equals('?:<string representation>')); 46 prettyPrint(new _PrivateName()), equals('?:<string representation>'));
47 }); 47 });
48 }); 48 });
49 49
50 group('with an iterable', () { 50 group('with an iterable', () {
51 test("that's not a list", () { 51 test("that's not a list", () {
52 expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)), 52 expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)),
53 equals("MappedListIterable:[2, 4, 6, 8]")); 53 equals("MappedListIterable:[2, 4, 6, 8]"));
54 }); 54 });
55 55
56 test("that's not a list and has a private name", () { 56 test("that's not a list and has a private name", () {
57 expect(prettyPrint(new _PrivateNameIterable()), 57 expect(prettyPrint(new _PrivateNameIterable()), equals("?:[1, 2, 3]"));
58 equals("?:[1, 2, 3]"));
59 }); 58 });
60 }); 59 });
61 } 60 }
OLDNEW
« no previous file with comments | « test/pretty_print_test.dart ('k') | test/prints_matcher_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698