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

Unified Diff: dart/frog/tests/leg/src/ScannerTest.dart

Issue 9447100: Return null from stringValue and call slowToString() instead of toString(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: changes Created 8 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
« no previous file with comments | « dart/frog/tests/leg/src/ResolverTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/tests/leg/src/ScannerTest.dart
diff --git a/dart/frog/tests/leg/src/ScannerTest.dart b/dart/frog/tests/leg/src/ScannerTest.dart
index 62fca4ce2f696b27825a4ea187e653925c01332c..7b1290f7b7f1c26681074e23e0def0548e6f4153 100644
--- a/dart/frog/tests/leg/src/ScannerTest.dart
+++ b/dart/frog/tests/leg/src/ScannerTest.dart
@@ -20,34 +20,34 @@ main() {
0xb6, 0xc3, 0xb1, 0xc3, 0xa5, 0xc4, 0xbc, 0xc3, 0xae,
0xc5, 0xbe, 0xc3, 0xa5, 0xc5, 0xa3, 0xc3, 0xae, 0xe1,
0xbb, 0x9d, 0xc3, 0xb1, $EOF]);
- Expect.stringEquals("Îñţérñåţîöñåļîžåţîờñ", token.value.toString());
+ Expect.stringEquals("Îñţérñåţîöñåļîžåţîờñ", token.value.slowToString());
// Blueberry porridge in Danish: "blåbærgrød".
token = scan([0x62, 0x6c, 0xc3, 0xa5, 0x62, 0xc3, 0xa6, 0x72, 0x67, 0x72,
0xc3, 0xb8, 0x64, $EOF]);
- Expect.stringEquals("blåbærgrød", token.value.toString());
+ Expect.stringEquals("blåbærgrød", token.value.slowToString());
// "சிவா அணாமாைல", that is "Siva Annamalai" in Tamil.
token = scan([0xe0, 0xae, 0x9a, 0xe0, 0xae, 0xbf, 0xe0, 0xae, 0xb5, 0xe0,
0xae, 0xbe, 0x20, 0xe0, 0xae, 0x85, 0xe0, 0xae, 0xa3, 0xe0,
0xae, 0xbe, 0xe0, 0xae, 0xae, 0xe0, 0xae, 0xbe, 0xe0, 0xaf,
0x88, 0xe0, 0xae, 0xb2, $EOF]);
- Expect.stringEquals("சிவா", token.value.toString());
- Expect.stringEquals("அணாமாைல", token.next.toString());
+ Expect.stringEquals("சிவா", token.value.slowToString());
+ Expect.stringEquals("அணாமாைல", token.next.value.slowToString());
// "िसवा अणामालै", that is "Siva Annamalai" in Devanagari.
token = scan([0xe0, 0xa4, 0xbf, 0xe0, 0xa4, 0xb8, 0xe0, 0xa4, 0xb5, 0xe0,
0xa4, 0xbe, 0x20, 0xe0, 0xa4, 0x85, 0xe0, 0xa4, 0xa3, 0xe0,
0xa4, 0xbe, 0xe0, 0xa4, 0xae, 0xe0, 0xa4, 0xbe, 0xe0, 0xa4,
0xb2, 0xe0, 0xa5, 0x88, $EOF]);
- Expect.stringEquals("िसवा", token.value.toString());
- Expect.stringEquals("अणामालै", token.next.toString());
+ Expect.stringEquals("िसवा", token.value.slowToString());
+ Expect.stringEquals("अणामालै", token.next.value.slowToString());
if (!isRunningOnJavaScript()) {
// DESERET CAPITAL LETTER BEE, unicode 0x10412(0xD801+0xDC12)
// UTF-8: F0 90 90 92
token = scan([0xf0, 0x90, 0x90, 0x92, $EOF]);
- Expect.stringEquals("𐐒", token.value.toString());
+ Expect.stringEquals("𐐒", token.value.slowToString());
} else {
print('Skipping non-BMP character test');
}
« no previous file with comments | « dart/frog/tests/leg/src/ResolverTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698