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

Side by Side Diff: utils/tests/string_encoding/unicode_test.dart

Issue 48133002: Remove deprecated dart:utf library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged to head. Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/utils.dart ('k') | utils/tests/string_encoding/utf8_benchmarks.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 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 library unicode_tests; 6 library unicode_tests;
7 import 'dunit.dart'; 7 import 'dunit.dart';
8 import '../../../sdk/lib/utf/utf.dart';
9 8
10 void main() { 9 void main() {
11 TestSuite suite = new TestSuite(); 10 TestSuite suite = new TestSuite();
12 suite.registerTestClass(new UnicodeTests()); 11 suite.registerTestClass(new UnicodeTests());
13 suite.run(); 12 suite.run();
14 } 13 }
15 14
16 class UnicodeTests extends TestClass { 15 class UnicodeTests extends TestClass {
17 static const String testPhrase = 16 static const String testPhrase =
18 "The quick brown fox jumps over the lazy dog."; 17 "The quick brown fox jumps over the lazy dog.";
(...skipping 19 matching lines...) Expand all
38 } 37 }
39 38
40 void testEmptyStringFromCharCodes() { 39 void testEmptyStringFromCharCodes() {
41 Expect.stringEquals("", new String.fromCharCodes(<int>[])); 40 Expect.stringEquals("", new String.fromCharCodes(<int>[]));
42 } 41 }
43 42
44 void testEmptyStringCharCodes() { 43 void testEmptyStringCharCodes() {
45 Expect.listEquals([], "".codeUnits); 44 Expect.listEquals([], "".codeUnits);
46 } 45 }
47 } 46 }
OLDNEW
« no previous file with comments | « tools/testing/dart/utils.dart ('k') | utils/tests/string_encoding/utf8_benchmarks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698