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

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

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 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
« no previous file with comments | « tests/language/generic_creation_test.dart ('k') | utils/apidoc/mdn/extract.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) 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("dart:io"); 5 #import("dart:io");
6 #import("dart:isolate"); 6 #import("dart:isolate");
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"); 8 #import("../../../tools/testing/dart/status_file_parser.dart");
9 #import("../../../tools/testing/dart/test_options.dart"); 9 #import("../../../tools/testing/dart/test_options.dart");
10 #source("process_test_util.dart"); 10 #source("process_test_util.dart");
11 11
12 class TestController { 12 class TestController {
13 static const int numTests = 4; 13 static const int numTests = 4;
14 static int numCompletedTests = 0; 14 static int numCompletedTests = 0;
15 15
16 // Used as TestCase.completedCallback. 16 // Used as TestCase.completedCallback.
17 static processCompletedTest(TestCase testCase) { 17 static processCompletedTest(TestCase testCase) {
18 TestOutput output = testCase.output; 18 TestOutput output = testCase.output;
19 print("Test: ${testCase.commands.last().commandLine}"); 19 print("Test: ${testCase.commands.last.commandLine}");
20 if (output.unexpectedOutput) { 20 if (output.unexpectedOutput) {
21 throw "Unexpected output: ${output.result}"; 21 throw "Unexpected output: ${output.result}";
22 } 22 }
23 print("stdout: "); 23 print("stdout: ");
24 for (var line in output.stdout) print(line); 24 for (var line in output.stdout) print(line);
25 print("stderr: "); 25 print("stderr: ");
26 for (var line in output.stderr) print(line); 26 for (var line in output.stderr) print(line);
27 27
28 print("Time: ${output.time}"); 28 print("Time: ${output.time}");
29 print("Exit code: ${output.exitCode}"); 29 print("Exit code: ${output.exitCode}");
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 break; 86 break;
87 case 'timeout': 87 case 'timeout':
88 // Run for 10 seconds, then exit. This tests a 2 second timeout. 88 // Run for 10 seconds, then exit. This tests a 2 second timeout.
89 new Timer(10 * 1000, (t){ }); 89 new Timer(10 * 1000, (t){ });
90 break; 90 break;
91 default: 91 default:
92 throw "Unknown option ${arguments[0]} passed to test_runner_test"; 92 throw "Unknown option ${arguments[0]} passed to test_runner_test";
93 } 93 }
94 } 94 }
95 } 95 }
OLDNEW
« no previous file with comments | « tests/language/generic_creation_test.dart ('k') | utils/apidoc/mdn/extract.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698