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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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 import "package:expect/expect.dart";
5 import "dart:io"; 6 import "dart:io";
6 import "process_test_util.dart"; 7 import "process_test_util.dart";
7 8
8 test(args) { 9 test(args) {
9 var future = Process.start(new Options().executable, args); 10 var future = Process.start(new Options().executable, args);
10 future.then((process) { 11 future.then((process) {
11 process.exitCode.then((exitCode) { 12 process.exitCode.then((exitCode) {
12 Expect.equals(0, exitCode); 13 Expect.equals(0, exitCode);
13 }); 14 });
14 // Drain stdout and stderr. 15 // Drain stdout and stderr.
(...skipping 14 matching lines...) Expand all
29 test([scriptFile.path, '3', '0', 'a b']); 30 test([scriptFile.path, '3', '0', 'a b']);
30 test([scriptFile.path, '3', '0', 'a\tb']); 31 test([scriptFile.path, '3', '0', 'a\tb']);
31 test([scriptFile.path, '3', '1', 'a\tb"']); 32 test([scriptFile.path, '3', '1', 'a\tb"']);
32 test([scriptFile.path, '3', '1', 'a"\tb']); 33 test([scriptFile.path, '3', '1', 'a"\tb']);
33 test([scriptFile.path, '3', '1', 'a"\t\\\\"b"']); 34 test([scriptFile.path, '3', '1', 'a"\t\\\\"b"']);
34 test([scriptFile.path, '4', '0', 'a\tb', 'a']); 35 test([scriptFile.path, '4', '0', 'a\tb', 'a']);
35 test([scriptFile.path, '4', '0', 'a\tb', 'a\t\t\t\tb']); 36 test([scriptFile.path, '4', '0', 'a\tb', 'a\t\t\t\tb']);
36 test([scriptFile.path, '4', '0', 'a\tb', 'a b']); 37 test([scriptFile.path, '4', '0', 'a\tb', 'a b']);
37 } 38 }
38 39
OLDNEW
« no previous file with comments | « tests/standalone/io/process_check_arguments_script.dart ('k') | tests/standalone/io/process_environment_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698