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

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

Issue 10252020: test rename overhaul: step 12 - standalone (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « tests/standalone/io/test_extension_test.dart ('k') | tests/standalone/io/testing_server.dart » ('j') | 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/src/io/TestRunnerTest.dart b/tests/standalone/io/test_runner_test.dart
similarity index 79%
rename from tests/standalone/src/io/TestRunnerTest.dart
rename to tests/standalone/io/test_runner_test.dart
index a6812bde8b54b44efa27873de60d52b4295f88cb..f47da9b866ac1ad2569f71b0df0ef897a20772f8 100644
--- a/tests/standalone/src/io/TestRunnerTest.dart
+++ b/tests/standalone/io/test_runner_test.dart
@@ -3,10 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
#import("dart:io");
-#import("../../../../tools/testing/dart/test_runner.dart");
-#import("../../../../tools/testing/dart/status_file_parser.dart");
-#import("../../../../tools/testing/dart/test_options.dart");
-#source("ProcessTestUtil.dart");
+#import("../../../tools/testing/dart/test_runner.dart");
+#import("../../../tools/testing/dart/status_file_parser.dart");
+#import("../../../tools/testing/dart/test_options.dart");
+#source("process_test_util.dart");
class TestController {
static final int numTests = 4;
@@ -30,17 +30,17 @@ class TestController {
++numCompletedTests;
print("$numCompletedTests/$numTests");
if (numCompletedTests == numTests) {
- print("TestRunnerTest.dart PASSED");
+ print("test_runner_test.dart PASSED");
}
}
}
TestCase MakeTestCase(String testName, List<String> expectations) {
- String test_path = "tests/standalone/src/${testName}.dart";
+ String test_path = "tests/standalone/${testName}.dart";
// Working directory may be dart/runtime rather than dart.
if (!new File(test_path).existsSync()) {
- test_path = "../tests/standalone/src/${testName}.dart";
+ test_path = "../tests/standalone/${testName}.dart";
}
var configuration = new TestOptionsParser().parse(['--timeout', '2'])[0];
@@ -56,9 +56,9 @@ TestCase MakeTestCase(String testName, List<String> expectations) {
void main() {
- new RunningProcess(MakeTestCase("PassTest", [PASS])).start();
- new RunningProcess(MakeTestCase("FailTest", [FAIL])).start();
- new RunningProcess(MakeTestCase("TimeoutTest", [TIMEOUT])).start();
+ new RunningProcess(MakeTestCase("pass_test", [PASS])).start();
+ new RunningProcess(MakeTestCase("fail_test", [FAIL])).start();
+ new RunningProcess(MakeTestCase("timeout_test", [TIMEOUT])).start();
// The crash test sometimes times out. Run it with a large timeout to help
// diagnose the delay.
@@ -73,5 +73,5 @@ void main() {
new Set<String>.from([CRASH]))).start();
Expect.equals(4, TestController.numTests);
// Throw must be from body of start() function for this test to work.
- Expect.throws(new RunningProcess(MakeTestCase("PassTest", [SKIP])).start);
+ Expect.throws(new RunningProcess(MakeTestCase("pass_test", [SKIP])).start);
}
« no previous file with comments | « tests/standalone/io/test_extension_test.dart ('k') | tests/standalone/io/testing_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698