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

Unified Diff: pkg/barback/test/asset_test.dart

Issue 22872012: Remove Encoding-enum from dart:io and add interface in dart:convert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo. Created 7 years, 4 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
« no previous file with comments | « pkg/barback/lib/src/asset.dart ('k') | pkg/barback/test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/test/asset_test.dart
diff --git a/pkg/barback/test/asset_test.dart b/pkg/barback/test/asset_test.dart
index 395dbfdf025406266360b210e0f7a5798bdbc53b..b26d4629cde8142236d4987b44c8dda43ddcdd0d 100644
--- a/pkg/barback/test/asset_test.dart
+++ b/pkg/barback/test/asset_test.dart
@@ -5,6 +5,7 @@
library barback.test.asset_test;
import 'dart:async';
+import 'dart:convert' show Encoding, UTF8, LATIN1;
import 'dart:io';
import 'dart:utf';
@@ -108,7 +109,7 @@ main() {
test("supports UTF-8", () {
var asset = new Asset.fromBytes(id, encodeUtf8("çøñ†éℵ™"));
- expect(asset.readAsString(encoding: Encoding.UTF_8),
+ expect(asset.readAsString(encoding: UTF8),
completion(equals("çøñ†éℵ™")));
});
@@ -124,7 +125,7 @@ main() {
test("ignores the encoding", () {
var asset = new Asset.fromString(id, "contents");
- expect(asset.readAsString(encoding: Encoding.ISO_8859_1),
+ expect(asset.readAsString(encoding: LATIN1),
completion(equals("contents")));
});
});
« no previous file with comments | « pkg/barback/lib/src/asset.dart ('k') | pkg/barback/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698