| Index: utils/tests/string_encoding/utf8_test.dart
|
| ===================================================================
|
| --- utils/tests/string_encoding/utf8_test.dart (revision 11633)
|
| +++ utils/tests/string_encoding/utf8_test.dart (working copy)
|
| @@ -14,10 +14,10 @@
|
| }
|
|
|
| class Utf8Tests extends TestClass {
|
| - static final String testEnglishPhrase =
|
| + static const String testEnglishPhrase =
|
| "The quick brown fox jumps over the lazy dog.";
|
|
|
| - static final List<int> testEnglishUtf8 = const<int> [
|
| + static const List<int> testEnglishUtf8 = const<int> [
|
| 0x54, 0x68, 0x65, 0x20, 0x71, 0x75, 0x69, 0x63,
|
| 0x6b, 0x20, 0x62, 0x72, 0x6f, 0x77, 0x6e, 0x20,
|
| 0x66, 0x6f, 0x78, 0x20, 0x6a, 0x75, 0x6d, 0x70,
|
| @@ -25,10 +25,10 @@
|
| 0x68, 0x65, 0x20, 0x6c, 0x61, 0x7a, 0x79, 0x20,
|
| 0x64, 0x6f, 0x67, 0x2e];
|
|
|
| - static final String testDanishPhrase = "Quizdeltagerne spiste jordbær med " +
|
| + static const String testDanishPhrase = "Quizdeltagerne spiste jordbær med " +
|
| "fløde mens cirkusklovnen Wolther spillede på xylofon.";
|
|
|
| - static final List<int> testDanishUtf8 = const<int>[
|
| + static const List<int> testDanishUtf8 = const<int>[
|
| 0x51, 0x75, 0x69, 0x7a, 0x64, 0x65, 0x6c, 0x74,
|
| 0x61, 0x67, 0x65, 0x72, 0x6e, 0x65, 0x20, 0x73,
|
| 0x70, 0x69, 0x73, 0x74, 0x65, 0x20, 0x6a, 0x6f,
|
| @@ -43,10 +43,10 @@
|
| 0x6e, 0x2e];
|
|
|
| // unusual formatting due to strange editor interaction w/ text direction.
|
| - static final String
|
| + static const String
|
| testHebrewPhrase = "דג סקרן שט בים מאוכזב ולפתע מצא לו חברה איך הקליטה";
|
|
|
| - static final List<int> testHebrewUtf8 = const<int>[
|
| + static const List<int> testHebrewUtf8 = const<int>[
|
| 0xd7, 0x93, 0xd7, 0x92, 0x20, 0xd7, 0xa1, 0xd7,
|
| 0xa7, 0xd7, 0xa8, 0xd7, 0x9f, 0x20, 0xd7, 0xa9,
|
| 0xd7, 0x98, 0x20, 0xd7, 0x91, 0xd7, 0x99, 0xd7,
|
| @@ -60,10 +60,10 @@
|
| 0xd7, 0xa7, 0xd7, 0x9c, 0xd7, 0x99, 0xd7, 0x98,
|
| 0xd7, 0x94];
|
|
|
| - static final String testRussianPhrase = "Съешь же ещё этих мягких " +
|
| + static const String testRussianPhrase = "Съешь же ещё этих мягких " +
|
| "французских булок да выпей чаю";
|
|
|
| - static final List<int> testRussianUtf8 = const<int>[
|
| + static const List<int> testRussianUtf8 = const<int>[
|
| 0xd0, 0xa1, 0xd1, 0x8a, 0xd0, 0xb5, 0xd1, 0x88,
|
| 0xd1, 0x8c, 0x20, 0xd0, 0xb6, 0xd0, 0xb5, 0x20,
|
| 0xd0, 0xb5, 0xd1, 0x89, 0xd1, 0x91, 0x20, 0xd1,
|
| @@ -78,10 +78,10 @@
|
| 0xd0, 0xbf, 0xd0, 0xb5, 0xd0, 0xb9, 0x20, 0xd1,
|
| 0x87, 0xd0, 0xb0, 0xd1, 0x8e];
|
|
|
| - static final String testGreekPhrase = "Γαζέες καὶ μυρτιὲς δὲν θὰ βρῶ πιὰ " +
|
| + static const String testGreekPhrase = "Γαζέες καὶ μυρτιὲς δὲν θὰ βρῶ πιὰ " +
|
| "στὸ χρυσαφὶ ξέφωτο";
|
|
|
| - static final List<int> testGreekUtf8 = const<int>[
|
| + static const List<int> testGreekUtf8 = const<int>[
|
| 0xce, 0x93, 0xce, 0xb1, 0xce, 0xb6, 0xce, 0xad,
|
| 0xce, 0xb5, 0xcf, 0x82, 0x20, 0xce, 0xba, 0xce,
|
| 0xb1, 0xe1, 0xbd, 0xb6, 0x20, 0xce, 0xbc, 0xcf,
|
| @@ -96,11 +96,11 @@
|
| 0xbd, 0xb6, 0x20, 0xce, 0xbe, 0xce, 0xad, 0xcf,
|
| 0x86, 0xcf, 0x89, 0xcf, 0x84, 0xce, 0xbf];
|
|
|
| - static final String testKatakanaPhrase = """
|
| + static const String testKatakanaPhrase = """
|
| イロハニホヘト チリヌルヲ ワカヨタレソ ツネナラム
|
| ウヰノオクヤマ ケフコエテ アサキユメミシ ヱヒモセスン""";
|
|
|
| - static final List<int> testKatakanaUtf8 = const<int>[
|
| + static const List<int> testKatakanaUtf8 = const<int>[
|
| 0xe3, 0x82, 0xa4, 0xe3, 0x83, 0xad, 0xe3, 0x83,
|
| 0x8f, 0xe3, 0x83, 0x8b, 0xe3, 0x83, 0x9b, 0xe3,
|
| 0x83, 0x98, 0xe3, 0x83, 0x88, 0x20, 0xe3, 0x83,
|
|
|