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', |
'', '', '', '', '', '', |