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

Side by Side Diff: tests/standalone/src/ProcessStartExceptionTest.dart

Issue 9572005: Move all tests using dart:io to a separate directory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 8 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 //
5 // Process test program to test process communication.
6
7 #import("dart:io");
8
9 class ProcessStartExceptionTest {
10
11 static void testStartError() {
12 Process process =
13 new Process.start("__path_to_something_that_should_not_exist__",
14 const []);
15
16 process.onExit = (int exitCode) {
17 Expect.fail("exit handler called");
18 };
19
20 process.onError = (ProcessException e) {
21 Expect.equals(2, e.errorCode);
22 };
23 }
24 }
25
26 main() {
27 ProcessStartExceptionTest.testStartError();
28 }
OLDNEW
« no previous file with comments | « tests/standalone/src/ProcessSegfaultTest.dart ('k') | tests/standalone/src/ProcessStdIOScript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698