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

Side by Side Diff: test/loader_data_test.dart

Issue 1612003002: Add browser-compatible version. (Closed) Base URL: https://github.com/dart-lang/resource.git@master
Patch Set: Made test run Created 4 years, 11 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
« no previous file with comments | « test/browser_http_test.dart ('k') | test/loader_file_test.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 @TestOn("vm");
6
5 import "dart:async"; 7 import "dart:async";
6 import "dart:convert"; 8 import "dart:convert";
7 import "dart:io"; 9 import "dart:io";
8 10
9 import "package:resource/resource.dart"; 11 import "package:resource/resource.dart";
10 import "package:test/test.dart"; 12 import "package:test/test.dart";
11 13
12 const content = "Rødgrød med fløde"; 14 const content = "Rødgrød med fløde";
13 15
14 main() { 16 main() {
(...skipping 27 matching lines...) Expand all
42 await bytes.forEach(buffer.addAll); 44 await bytes.forEach(buffer.addAll);
43 expect(buffer, encoding.encode(content)); 45 expect(buffer, encoding.encode(content));
44 }); 46 });
45 }); 47 });
46 } 48 }
47 testFile(LATIN1, true); 49 testFile(LATIN1, true);
48 testFile(LATIN1, false); 50 testFile(LATIN1, false);
49 testFile(UTF8, true); 51 testFile(UTF8, true);
50 testFile(UTF8, false); 52 testFile(UTF8, false);
51 } 53 }
OLDNEW
« no previous file with comments | « test/browser_http_test.dart ('k') | test/loader_file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698