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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). 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
OLDNEW
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 // Test script for testing that output is handled correctly for 5 // Test script for testing that output is handled correctly for
6 // non-interactive processes started with Process.run. 6 // non-interactive processes started with Process.run.
7 7
8 import "package:expect/expect.dart";
9 import "dart:io"; 8 import "dart:io";
10 import "process_test_util.dart"; 9 import "process_test_util.dart";
11 10
12 checkOutput(encoding, output) { 11 checkOutput(encoding, output) {
13 if (encoding == 'ascii') { 12 if (encoding == 'ascii') {
14 Expect.equals(output, 'abc'); 13 Expect.equals(output, 'abc');
15 } else if (encoding == 'latin1') { 14 } else if (encoding == 'latin1') {
16 Expect.equals(output, 'æøå'); 15 Expect.equals(output, 'æøå');
17 } else if (encoding == 'utf8') { 16 } else if (encoding == 'utf8') {
18 Expect.listEquals(output.codeUnits, [955]); 17 Expect.listEquals(output.codeUnits, [955]);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 58 }
60 Expect.isTrue(scriptFile.existsSync()); 59 Expect.isTrue(scriptFile.existsSync());
61 test(scriptFile.path, 'ascii', 'stdout'); 60 test(scriptFile.path, 'ascii', 'stdout');
62 test(scriptFile.path, 'ascii', 'stderr'); 61 test(scriptFile.path, 'ascii', 'stderr');
63 test(scriptFile.path, 'latin1', 'stdout'); 62 test(scriptFile.path, 'latin1', 'stdout');
64 test(scriptFile.path, 'latin1', 'stderr'); 63 test(scriptFile.path, 'latin1', 'stderr');
65 test(scriptFile.path, 'utf8', 'stdout'); 64 test(scriptFile.path, 'utf8', 'stdout');
66 test(scriptFile.path, 'utf8', 'stderr'); 65 test(scriptFile.path, 'utf8', 'stderr');
67 66
68 } 67 }
OLDNEW
« no previous file with comments | « tests/standalone/io/process_path_test.dart ('k') | tests/standalone/io/process_segfault_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698