| OLD | NEW |
| 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 #import("dart:io"); | 5 #import("dart:io"); |
| 6 | 6 |
| 7 void testUtf8() { | 7 void testUtf8() { |
| 8 List<int> data = [0x01, | 8 List<int> data = [0x01, |
| 9 0x7f, | 9 0x7f, |
| 10 0xc2, 0x80, | 10 0xc2, 0x80, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 s.write("Line1\nLine2\r\nLine3\rLi".charCodes()); | 155 s.write("Line1\nLine2\r\nLine3\rLi".charCodes()); |
| 156 } | 156 } |
| 157 | 157 |
| 158 main() { | 158 main() { |
| 159 testUtf8(); | 159 testUtf8(); |
| 160 testLatin1(); | 160 testLatin1(); |
| 161 testAscii(); | 161 testAscii(); |
| 162 testReadLine1(); | 162 testReadLine1(); |
| 163 testReadLine2(); | 163 testReadLine2(); |
| 164 } | 164 } |
| OLD | NEW |