| 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("test_suite"); | 5 #library("test_suite"); |
| 6 | 6 |
| 7 #import("status_file_parser.dart"); | 7 #import("status_file_parser.dart"); |
| 8 #import("test_runner.dart"); | 8 #import("test_runner.dart"); |
| 9 | 9 |
| 10 interface TestSuite { | 10 interface TestSuite { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 testExpectations = | 103 testExpectations = |
| 104 new TestExpectations(complexMatching: complexStatusMatching()); | 104 new TestExpectations(complexMatching: complexStatusMatching()); |
| 105 for (var statusFilePath in statusFilePaths) { | 105 for (var statusFilePath in statusFilePaths) { |
| 106 ReadTestExpectationsInto(testExpectations, | 106 ReadTestExpectationsInto(testExpectations, |
| 107 statusFilePath, | 107 statusFilePath, |
| 108 configuration); | 108 configuration); |
| 109 } | 109 } |
| 110 | 110 |
| 111 receiveTestName = new ReceivePort(); | 111 receiveTestName = new ReceivePort(); |
| 112 new CCTestListerIsolate().spawn().then((port) { | 112 new CCTestListerIsolate().spawn().then((port) { |
| 113 port.send(runnerPath, receiveTestName); | 113 port.send(runnerPath, receiveTestName.toSendPort()); |
| 114 receiveTestName.receive(testNameHandler); | 114 receiveTestName.receive(testNameHandler); |
| 115 }); | 115 }); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void completeHandler(TestCase testCase) { | 118 void completeHandler(TestCase testCase) { |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 | 121 |
| 122 | 122 |
| 123 class StandardTestSuite implements TestSuite { | 123 class StandardTestSuite implements TestSuite { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 args.add("--enable_leg"); | 330 args.add("--enable_leg"); |
| 331 } | 331 } |
| 332 if (configuration["component"] == "dartc") { | 332 if (configuration["component"] == "dartc") { |
| 333 if (configuration["mode"] == "release") { | 333 if (configuration["mode"] == "release") { |
| 334 args.add("--optimize"); | 334 args.add("--optimize"); |
| 335 } | 335 } |
| 336 } | 336 } |
| 337 return args; | 337 return args; |
| 338 } | 338 } |
| 339 } | 339 } |
| OLD | NEW |