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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 // Process test program to test that invalid arguments throw exceptions. 5 // Process test program to test that invalid arguments throw exceptions.
6 6
7 import "package:expect/expect.dart";
7 import "dart:io"; 8 import "dart:io";
8 9
9 void main() { 10 void main() {
10 Expect.throws(() => Process.start(["true"], []), 11 Expect.throws(() => Process.start(["true"], []),
11 (e) => e is ArgumentError); 12 (e) => e is ArgumentError);
12 Expect.throws(() => Process.start("true", "asdf"), 13 Expect.throws(() => Process.start("true", "asdf"),
13 (e) => e is ArgumentError); 14 (e) => e is ArgumentError);
14 Expect.throws(() => Process.start("true", ["asdf", 1]), 15 Expect.throws(() => Process.start("true", ["asdf", 1]),
15 (e) => e is ArgumentError); 16 (e) => e is ArgumentError);
16 Expect.throws(() => Process.run(["true"], [], null), 17 Expect.throws(() => Process.run(["true"], [], null),
(...skipping 10 matching lines...) Expand all
27 (e) => e is ArgumentError); 28 (e) => e is ArgumentError);
28 options = new ProcessOptions(); 29 options = new ProcessOptions();
29 options.stdoutEncoding = 23; 30 options.stdoutEncoding = 23;
30 Expect.throws(() => Process.run("true", [], options), 31 Expect.throws(() => Process.run("true", [], options),
31 (e) => e is ArgumentError); 32 (e) => e is ArgumentError);
32 options = new ProcessOptions(); 33 options = new ProcessOptions();
33 options.stderrEncoding = 23; 34 options.stderrEncoding = 23;
34 Expect.throws(() => Process.run("true", [], options), 35 Expect.throws(() => Process.run("true", [], options),
35 (e) => e is ArgumentError); 36 (e) => e is ArgumentError);
36 } 37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698