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

Side by Side Diff: pkg/intl/test/message_extraction/message_extraction_test.dart

Issue 12645010: Intl test spawning processes must specify the encoding for stdout (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 message_extraction_test; 5 library message_extraction_test;
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:async'; 9 import 'dart:async';
10 import 'package:pathos/path.dart' as path; 10 import 'package:pathos/path.dart' as path;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 print("exitCode=${previousResult.exitCode}"); 90 print("exitCode=${previousResult.exitCode}");
91 } 91 }
92 var filesInTheRightDirectory = filenames.map((x) => dir(x)).toList(); 92 var filesInTheRightDirectory = filenames.map((x) => dir(x)).toList();
93 // Inject the script argument --output-dir in between the script and its 93 // Inject the script argument --output-dir in between the script and its
94 // arguments. 94 // arguments.
95 var args = [] 95 var args = []
96 ..addAll(vmArgs) 96 ..addAll(vmArgs)
97 ..add(filesInTheRightDirectory.first) 97 ..add(filesInTheRightDirectory.first)
98 ..addAll(["--output-dir=${dir()}"]) 98 ..addAll(["--output-dir=${dir()}"])
99 ..addAll(filesInTheRightDirectory.skip(1)); 99 ..addAll(filesInTheRightDirectory.skip(1));
100 var options = new ProcessOptions()
101 ..stdoutEncoding=Encoding.UTF_8
102 ..stderrEncoding=Encoding.UTF_8;
100 var result = Process.run(dart, args); 103 var result = Process.run(dart, args);
101 return result; 104 return result;
102 } 105 }
103 106
104 Future<ProcessResult> extractMessages(ProcessResult previousResult) => run( 107 Future<ProcessResult> extractMessages(ProcessResult previousResult) => run(
105 previousResult, 108 previousResult,
106 ['extract_to_json.dart', 'sample_with_messages.dart', 109 ['extract_to_json.dart', 'sample_with_messages.dart',
107 'part_of_sample_with_messages.dart']); 110 'part_of_sample_with_messages.dart']);
108 111
109 Future<ProcessResult> generateTranslationFiles(ProcessResult previousResult) => 112 Future<ProcessResult> generateTranslationFiles(ProcessResult previousResult) =>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 verify("Diese Methode ist nicht eine Lambda"); 213 verify("Diese Methode ist nicht eine Lambda");
211 verify("Dies ergibt sich aus einer statischen Methode"); 214 verify("Dies ergibt sich aus einer statischen Methode");
212 verify("This is missing some translations"); 215 verify("This is missing some translations");
213 verify("Antike griechische Galgenmännchen Zeichen: 𐅆𐅇"); 216 verify("Antike griechische Galgenmännchen Zeichen: 𐅆𐅇");
214 // verify("Die Sache ist, well"); 217 // verify("Die Sache ist, well");
215 // expect("Einer der knifflige Dinge ist der Plural"); 218 // expect("Einer der knifflige Dinge ist der Plural");
216 // expect("Zu den kniffligen Dinge Pluralformen"); 219 // expect("Zu den kniffligen Dinge Pluralformen");
217 verify("Escapes: "); 220 verify("Escapes: ");
218 verify("\r\f\b\t\v."); 221 verify("\r\f\b\t\v.");
219 } 222 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698