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

Unified Diff: tests/standalone/io/test_runner_test.dart

Issue 332153004: Improve test_runner_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/io/test_runner_test.dart
diff --git a/tests/standalone/io/test_runner_test.dart b/tests/standalone/io/test_runner_test.dart
index 61e762b091a445bc1abe7c9626a6db3a3e72ef65..5c94cc1cc47f17ebc8bfbcf56b47350f38d6ba6f 100644
--- a/tests/standalone/io/test_runner_test.dart
+++ b/tests/standalone/io/test_runner_test.dart
@@ -30,7 +30,8 @@ class TestController {
new String.fromCharCodes(testCase.lastCommandOutput.stderr);
print("stdout = [$stdout]");
print("stderr = [$stderr]");
- throw "Expected fail-unexpected: ${testCase.result}";
+ throw "Test case ${testCase.displayName} passed unexpectedly, "
+ "result == ${testCase.result}";
kustermann 2014/06/16 08:26:29 Indentation.
}
} else {
if (testCase.unexpectedOutput) {
@@ -40,7 +41,8 @@ class TestController {
new String.fromCharCodes(testCase.lastCommandOutput.stderr);
print("stdout = [$stdout]");
print("stderr = [$stderr]");
- throw "Unexpected fail";
+ throw "Test case ${testCase.displayName} failed, "
+ "result == ${testCase.result}";
kustermann 2014/06/16 08:26:29 ditto.
}
}
}
« 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