| 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("corelib_test_config"); | 5 #library("corelib_test_config"); |
| 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 class CorelibTestSuite { | 10 class CorelibTestSuite { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 if (!filename.endsWith("Test.dart")) return; | 47 if (!filename.endsWith("Test.dart")) return; |
| 48 | 48 |
| 49 int start = filename.lastIndexOf(pathSeparator); | 49 int start = filename.lastIndexOf(pathSeparator); |
| 50 String testName = filename.substring(start + 1, filename.length - 5); | 50 String testName = filename.substring(start + 1, filename.length - 5); |
| 51 Set<String> expectations = testExpectationsMap.expectations(testName); | 51 Set<String> expectations = testExpectationsMap.expectations(testName); |
| 52 | 52 |
| 53 // TODO(whesse): Skip files with internal directives, and multipart files, | 53 // TODO(whesse): Skip files with internal directives, and multipart files, |
| 54 // until they are handled correctly. | 54 // until they are handled correctly. |
| 55 if (expectations.contains(SKIP)) return; | 55 if (expectations.contains(SKIP)) return; |
| 56 | 56 |
| 57 List args = ["--ignore-unrecognized-flags"]; |
| 58 if (configuration["checked"]) { |
| 59 args.add("--enable-type-checks"); |
| 60 } |
| 61 args.add(filename); |
| 57 | 62 |
| 58 doTest(new TestCase(testName, | 63 doTest(new TestCase(testName, |
| 59 shellPath, | 64 shellPath, |
| 60 <String>["--enable_type_checks", | 65 args, |
| 61 "--ignore-unrecognized-flags", | |
| 62 filename ], | |
| 63 completeHandler, | 66 completeHandler, |
| 64 expectations)); | 67 expectations)); |
| 65 } | 68 } |
| 66 | 69 |
| 67 void completeHandler(TestCase testCase) { | 70 void completeHandler(TestCase testCase) { |
| 68 } | 71 } |
| 69 } | 72 } |
| OLD | NEW |