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

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

Issue 8514003: tools/test.dart: Read test expectations from the status file, and pass them to the test runner. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Import library with PASS, FAIL, CRASH to TestRunnerTest Created 9 years, 1 month 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) 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("../../../tools/testing/dart/test_runner.dart"); 7 #import("../../../tools/testing/dart/test_runner.dart");
8 #import("../../../tools/testing/dart/status_file_parser.dart");
Mads Ager (google) 2011/11/10 16:31:57 Do you need this here when there are no other chan
Bill Hesse 2011/11/10 16:44:45 Yes. The declarations of PASS, FAIL, and CRASH ar
8 9
9 // TODO(whesse) source("ProcessTestUtil.dart"); when it is committed. 10 // TODO(whesse) source("ProcessTestUtil.dart"); when it is committed.
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) {
17 TestOutput output = testCase.output; 18 TestOutput output = testCase.output;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const ["0", "0", "1", "1"], 78 const ["0", "0", "1", "1"],
78 TestController.processCompletedTest, 79 TestController.processCompletedTest,
79 new Set<String>.from([CRASH])), 80 new Set<String>.from([CRASH])),
80 timeout).start(); 81 timeout).start();
81 Expect.equals(4, TestController.numTests); 82 Expect.equals(4, TestController.numTests);
82 // Throw must be from body of start() function for this test to work. 83 // Throw must be from body of start() function for this test to work.
83 Expect.throws( 84 Expect.throws(
84 new RunningProcess(MakeTestCase("PassTest", [SKIP]), timeout).start); 85 new RunningProcess(MakeTestCase("PassTest", [SKIP]), timeout).start);
85 } 86 }
86 87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698