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

Unified Diff: pkg/http/test/client_test.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: pkg/http/test/client_test.dart
diff --git a/pkg/http/test/client_test.dart b/pkg/http/test/client_test.dart
index fd056c9c4233b18b8f8571bff339d73751ebe9ad..14068f9c13fa052c8fa60f63912cd5781409d7cd 100644
--- a/pkg/http/test/client_test.dart
+++ b/pkg/http/test/client_test.dart
@@ -41,7 +41,7 @@ void main() {
'body': '{"hello": "world"}'
}))));
- request.sink.add('{"hello": "world"}'.charCodes);
+ request.sink.add('{"hello": "world"}'.codeUnits);
request.sink.close();
});
@@ -54,7 +54,7 @@ void main() {
expect(client.send(request), throwsSocketIOException);
- request.sink.add('{"hello": "world"}'.charCodes);
+ request.sink.add('{"hello": "world"}'.codeUnits);
request.sink.close();
});
}

Powered by Google App Engine
This is Rietveld 408576698