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

Unified Diff: tests/lib/convert/line_splitter_test.dart

Issue 23492002: adding HtmlEscape to dart:convert (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: documentation TODOs Created 7 years, 3 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
Index: tests/lib/convert/line_splitter_test.dart
diff --git a/tests/lib/convert/line_splitter_test.dart b/tests/lib/convert/line_splitter_test.dart
index 60a7c29f1600138e65b7be04eebfb2135fbaa52f..2d8f5e09f9c8cb1647cbdb59da7d0f1e1487106e 100644
--- a/tests/lib/convert/line_splitter_test.dart
+++ b/tests/lib/convert/line_splitter_test.dart
@@ -83,8 +83,8 @@ line3""";
void testReadLine1() {
var controller = new StreamController(sync: true);
var stream = controller.stream
- .transform(new Utf8Decoder())
- .transform(new LineSplitter());
+ .transform(UTF8.decoder)
+ .transform(const LineSplitter());
var stage = 0;
var done = false;
@@ -114,8 +114,8 @@ void testReadLine2() {
var controller = new StreamController(sync: true);
var stream = controller.stream
- .transform(new Utf8Decoder())
- .transform(new LineSplitter());
+ .transform(UTF8.decoder)
+ .transform(const LineSplitter());
var expectedLines = ['Line1', 'Line2','Line3', 'Line4',
'', '', '', '', '', '',
« sdk/lib/convert/html_escape.dart ('K') | « tests/lib/convert/html_escape_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698