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

Side by Side Diff: tests/standalone/io/console_unicode_test.dart

Issue 2710603009: Revert "Revert "[test.dart] Complain if there is non-utf8 formatted data in test output"" (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | tests/standalone/io/non_utf8_output_test.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 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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:convert'; 5 import 'dart:convert';
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 main() { 8 main() {
9 String canary = "Canary";
9 String spades = "These are three black spades: ♠♠♠"; 10 String spades = "These are three black spades: ♠♠♠";
10 String german = "German characters: aäbcdefghijklmnoöpqrsßtuüvwxyz"; 11 String german = "German characters: aäbcdefghijklmnoöpqrsßtuüvwxyz";
11 12
13 stdout.writeln(canary);
12 stdout.writeln(spades); 14 stdout.writeln(spades);
13 stdout.writeln(german); 15 stdout.writeln(german);
14 print(spades); 16 print(spades);
15 print(german); 17 print(german);
16 18
17 stdout.add(spades.runes.toList()); 19 stdout.add(canary.runes.toList());
18 stdout.writeln();
19 stdout.add(german.runes.toList());
20 stdout.writeln(); 20 stdout.writeln();
21 21
22 stdout.add(spades.codeUnits); 22 stdout.writeln(canary);
23 stdout.writeln();
24 stdout.add(german.codeUnits);
25 stdout.writeln();
26
27 stdout.writeln(spades); 23 stdout.writeln(spades);
28 stdout.writeln(german); 24 stdout.writeln(german);
29 print(spades); 25 print(spades);
30 print(german); 26 print(german);
31 } 27
28 stdout.add(canary.codeUnits);
29 stdout.writeln();
30 }
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/io/non_utf8_output_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698