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

Side by Side Diff: pkg/matcher/lib/src/description.dart

Issue 208823005: pkg/matcher (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « pkg/matcher/lib/src/core_matchers.dart ('k') | pkg/matcher/lib/src/expect.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 part of unittest.matcher; 5 library matcher.description;
6
7 import 'interfaces.dart';
8 import 'pretty_print.dart';
9 import 'utils.dart';
6 10
7 /** 11 /**
8 * The default implementation of IDescription. This should rarely need 12 * The default implementation of IDescription. This should rarely need
9 * substitution, although conceivably it is a place where other languages 13 * substitution, although conceivably it is a place where other languages
10 * could be supported. 14 * could be supported.
11 */ 15 */
12 class StringDescription implements Description { 16 class StringDescription implements Description {
13 var _out; 17 var _out;
14 18
15 /** Initialize the description with initial contents [init]. */ 19 /** Initialize the description with initial contents [init]. */
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return this; 73 return this;
70 } 74 }
71 75
72 /** Escape the control characters in [string] so that they are visible. */ 76 /** Escape the control characters in [string] so that they are visible. */
73 _addEscapedString(String string) { 77 _addEscapedString(String string) {
74 add("'"); 78 add("'");
75 add(escapeString(string)); 79 add(escapeString(string));
76 add("'"); 80 add("'");
77 } 81 }
78 } 82 }
OLDNEW
« no previous file with comments | « pkg/matcher/lib/src/core_matchers.dart ('k') | pkg/matcher/lib/src/expect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698