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

Side by Side Diff: tests/standalone/io/status_file_parser_test.dart

Issue 2984203002: Move the status file parser into its own package. (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « pkg/status_file/test/status_expression_test.dart ('k') | tests/standalone/io/test_runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698