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

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

Issue 9254026: Split dart:builtin into dart:builtin and dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment and add binaries. Created 8 years, 11 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 | « tests/standalone/src/StringStreamTest.dart ('k') | tests/standalone/src/TimerCancel1Test.dart » ('j') | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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("TestRunnerTest"); 5 #library("TestRunnerTest");
6 6
7 #import("dart:io");
7 #import("../../../tools/testing/dart/test_runner.dart"); 8 #import("../../../tools/testing/dart/test_runner.dart");
8 #import("../../../tools/testing/dart/status_file_parser.dart"); 9 #import("../../../tools/testing/dart/status_file_parser.dart");
9 #source("ProcessTestUtil.dart"); 10 #source("ProcessTestUtil.dart");
10 11
11 class TestController { 12 class TestController {
12 static final int numTests = 4; 13 static final int numTests = 4;
13 static int numCompletedTests = 0; 14 static int numCompletedTests = 0;
14 15
15 // Used as TestCase.completedCallback. 16 // Used as TestCase.completedCallback.
16 static processCompletedTest(TestCase testCase) { 17 static processCompletedTest(TestCase testCase) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 getProcessTestFileName(), 68 getProcessTestFileName(),
68 const ["0", "0", "1", "1"], 69 const ["0", "0", "1", "1"],
69 configuration, 70 configuration,
70 TestController.processCompletedTest, 71 TestController.processCompletedTest,
71 new Set<String>.from([CRASH]))).start(); 72 new Set<String>.from([CRASH]))).start();
72 Expect.equals(4, TestController.numTests); 73 Expect.equals(4, TestController.numTests);
73 // Throw must be from body of start() function for this test to work. 74 // Throw must be from body of start() function for this test to work.
74 Expect.throws(new RunningProcess(MakeTestCase("PassTest", [SKIP])).start); 75 Expect.throws(new RunningProcess(MakeTestCase("PassTest", [SKIP])).start);
75 } 76 }
76 77
OLDNEW
« no previous file with comments | « tests/standalone/src/StringStreamTest.dart ('k') | tests/standalone/src/TimerCancel1Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698