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

Side by Side Diff: tests/utils/utf8_test.dart

Issue 10170040: test rename overhaul: step 11 - tests/utils (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « tests/utils/uri_test.dart ('k') | tests/utils/utils.status » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #library('Utf8Test'); 5 #library('Utf8Test');
6 #import('dart:utf'); 6 #import('dart:utf');
7 7
8 String decode(List<int> bytes) => decodeUtf8(bytes); 8 String decode(List<int> bytes) => decodeUtf8(bytes);
9 9
10 bool isRunningOnJavaScript() => 1 === 1.0; 10 bool isRunningOnJavaScript() => 1 === 1.0;
(...skipping 30 matching lines...) Expand all
41 // DESERET CAPITAL LETTER BEE, unicode 0x10412(0xD801+0xDC12) 41 // DESERET CAPITAL LETTER BEE, unicode 0x10412(0xD801+0xDC12)
42 // UTF-8: F0 90 90 92 42 // UTF-8: F0 90 90 92
43 string = decode([0xf0, 0x90, 0x90, 0x92]); 43 string = decode([0xf0, 0x90, 0x90, 0x92]);
44 Expect.stringEquals("𐐒", string); 44 Expect.stringEquals("𐐒", string);
45 } else { 45 } else {
46 print('Skipping non-BMP character test'); 46 print('Skipping non-BMP character test');
47 } 47 }
48 48
49 // TODO(ahe): Add tests of bad input. 49 // TODO(ahe): Add tests of bad input.
50 } 50 }
OLDNEW
« no previous file with comments | « tests/utils/uri_test.dart ('k') | tests/utils/utils.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698