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

Unified Diff: tests/standalone/src/TestRunnerTest.dart

Issue 9510002: test.dart: fix TestRunnerTest actual tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/TestRunnerTest.dart
diff --git a/tests/standalone/src/TestRunnerTest.dart b/tests/standalone/src/TestRunnerTest.dart
index 0803e2b70ca611ec4d27efdf36cd7c4edb587a69..594fc938c8ad350263835102324f4843087f1286 100644
--- a/tests/standalone/src/TestRunnerTest.dart
+++ b/tests/standalone/src/TestRunnerTest.dart
@@ -16,7 +16,7 @@ class TestController {
// Used as TestCase.completedCallback.
static processCompletedTest(TestCase testCase) {
TestOutput output = testCase.output;
- print("Test: ${testCase.commandLine}");
+ print("Test: ${testCase.commands.last().commandLine}");
if (output.unexpectedOutput) {
throw "Unexpected output: ${output.result}";
}
@@ -47,10 +47,10 @@ TestCase MakeTestCase(String testName, List<String> expectations) {
var configuration = { 'timeout': 2,
'special-command': '' };
return new TestCase(testName,
- getDartFileName(),
- <String>["--ignore-unrecognized-flags",
- "--enable_type_checks",
- test_path],
+ [new Command(getDartFileName(),
+ <String>["--ignore-unrecognized-flags",
+ "--enable_type_checks",
+ test_path])],
configuration,
TestController.processCompletedTest,
new Set<String>.from(expectations));
@@ -65,8 +65,8 @@ void main() {
new RunningProcess(MakeTestCase("TimeoutTest", [TIMEOUT])).start();
new RunningProcess(new TestCase("CrashTest",
- getProcessTestFileName(),
- const ["0", "0", "1", "1"],
+ [new Command(getProcessTestFileName(),
+ const ["0", "0", "1", "1"])],
configuration,
TestController.processCompletedTest,
new Set<String>.from([CRASH]))).start();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698