| OLD | NEW |
| 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"); | 8 #import("../../../tools/testing/dart/status_file_parser.dart"); |
| 9 | 9 |
| 10 // TODO(whesse) source("ProcessTestUtil.dart"); when it is committed. | 10 // TODO(whesse) source("ProcessTestUtil.dart"); when it is committed. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 <String>["--ignore-unrecognized-flags", | 49 <String>["--ignore-unrecognized-flags", |
| 50 "--enable_type_checks", | 50 "--enable_type_checks", |
| 51 test_path], | 51 test_path], |
| 52 timeout, | 52 timeout, |
| 53 TestController.processCompletedTest, | 53 TestController.processCompletedTest, |
| 54 new Set<String>.from(expectations)); | 54 new Set<String>.from(expectations)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 | 57 |
| 58 String getDartBinName() { | 58 String getDartBinName() { |
| 59 var names = ["out/Debug_ia32/dart_bin", | 59 var names = ["out/Debug_ia32/dart", |
| 60 "out/Release_ia32/dart_bin", | 60 "out/Release_ia32/dart", |
| 61 "xcodebuild/Debug_ia32/dart_bin", | 61 "xcodebuild/Debug_ia32/dart", |
| 62 "xcodebuild/Release_ia32/dart_bin", | 62 "xcodebuild/Release_ia32/dart", |
| 63 "Debug_ia32/dart_bin.exe", | 63 "Debug_ia32/dart.exe", |
| 64 "Release_ia32/dart_bin.exe"]; | 64 "Release_ia32/dart.exe"]; |
| 65 for (var name in names) { | 65 for (var name in names) { |
| 66 if (new File(name).existsSync()) { | 66 if (new File(name).existsSync()) { |
| 67 return name; | 67 return name; |
| 68 } | 68 } |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 | 71 |
| 72 | 72 |
| 73 String getProcessTestFileName() { | 73 String getProcessTestFileName() { |
| 74 var names = ['out/Release_ia32/process_test', | 74 var names = ['out/Release_ia32/process_test', |
| (...skipping 22 matching lines...) Expand all Loading... |
| 97 timeout, | 97 timeout, |
| 98 TestController.processCompletedTest, | 98 TestController.processCompletedTest, |
| 99 new Set<String>.from([CRASH])), | 99 new Set<String>.from([CRASH])), |
| 100 timeout).start(); | 100 timeout).start(); |
| 101 Expect.equals(4, TestController.numTests); | 101 Expect.equals(4, TestController.numTests); |
| 102 // Throw must be from body of start() function for this test to work. | 102 // Throw must be from body of start() function for this test to work. |
| 103 Expect.throws( | 103 Expect.throws( |
| 104 new RunningProcess(MakeTestCase("PassTest", [SKIP]), timeout).start); | 104 new RunningProcess(MakeTestCase("PassTest", [SKIP]), timeout).start); |
| 105 } | 105 } |
| 106 | 106 |
| OLD | NEW |