| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 library StatusFileParserTest; | |
| 6 | |
| 7 import "package:expect/expect.dart"; | |
| 8 import "dart:io"; | |
| 9 import "../../../tools/testing/dart/path.dart"; | |
| 10 import "../../../tools/testing/dart/status_file.dart"; | |
| 11 import "../../../tools/testing/dart/utils.dart"; | |
| 12 | |
| 13 void main() { | |
| 14 testReadStatusFile("runtime/tests/vm/vm.status"); | |
| 15 testReadStatusFile("samples/tests/samples/samples.status"); | |
| 16 testReadStatusFile("tests/co19/co19-compiler.status"); | |
| 17 testReadStatusFile("tests/co19/co19-runtime.status"); | |
| 18 testReadStatusFile("tests/corelib/corelib.status"); | |
| 19 testReadStatusFile("tests/dom/dom.status"); | |
| 20 testReadStatusFile("tests/html/html.status"); | |
| 21 testReadStatusFile("tests/isolate/isolate.status"); | |
| 22 testReadStatusFile("tests/language/language.status"); | |
| 23 testReadStatusFile("tests/standalone/standalone.status"); | |
| 24 } | |
| 25 | |
| 26 String fixFilePath(String filePath) { | |
| 27 if (new File(filePath).existsSync()) { | |
| 28 return filePath; | |
| 29 } else { | |
| 30 return "../${filePath}"; | |
| 31 } | |
| 32 } | |
| 33 | |
| 34 void testReadStatusFile(String filePath) { | |
| 35 var file = new File(fixFilePath(filePath)); | |
| 36 if (!file.existsSync()) return; | |
| 37 | |
| 38 var statusFile = new StatusFile.read(file.path); | |
| 39 Expect.isTrue(statusFile.sections.length > 0); | |
| 40 } | |
| OLD | NEW |