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

Unified Diff: tests/standalone/src/StatusFileParserTest.dart

Issue 8440033: Disable standalone/StatusFileParserTest on dartium, improve handling of missing files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Improve fix, disable on dartium. Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/StatusFileParserTest.dart
diff --git a/tests/standalone/src/StatusFileParserTest.dart b/tests/standalone/src/StatusFileParserTest.dart
index 6aa7d242002bf7c632c034e3f7964a42e1e583ab..a3bbc7e15453f745a24f3e03127181d986761afa 100644
--- a/tests/standalone/src/StatusFileParserTest.dart
+++ b/tests/standalone/src/StatusFileParserTest.dart
@@ -7,24 +7,28 @@
#import("../../../tools/testing/dart/status_file_parser.dart");
-main() {
- ReadConfigurationInto("tests/co19/co19-compiler.status", new List<Section>());
- ReadConfigurationInto("tests/co19/co19-runtime.status", new List<Section>());
- ReadConfigurationInto("tests/corelib/corelib.status", new List<Section>());
- ReadConfigurationInto("tests/isolate/isolate.status", new List<Section>());
- ReadConfigurationInto("tests/language/language.status", new List<Section>());
- ReadConfigurationInto("tests/standalone/standalone.status",
- new List<Section>());
- ReadConfigurationInto("tests/stub-generator/stub-generator.status",
- new List<Section>());
- ReadConfigurationInto("samples/tests/samples/samples.status",
- new List<Section>());
- ReadConfigurationInto("runtime/tests/vm/vm.status", new List<Section>());
- ReadConfigurationInto("frog/tests/frog/frog.status", new List<Section>());
- ReadConfigurationInto("compiler/tests/dartc/dartc.status",
- new List<Section>());
- ReadConfigurationInto("client/tests/client/client.status",
- new List<Section>());
- ReadConfigurationInto("client/tests/dartc/dartc.status",
- new List<Section>());
+void main() {
+ TestReadStatusFile("tests/co19/co19-compiler.status");
+ TestReadStatusFile("tests/co19/co19-runtime.status");
+ TestReadStatusFile("tests/corelib/corelib.status");
+ TestReadStatusFile("tests/isolate/isolate.status");
+ TestReadStatusFile("tests/language/language.status");
+ TestReadStatusFile("tests/standalone/standalone.status");
+ TestReadStatusFile("tests/stub-generator/stub-generator.status");
+ TestReadStatusFile("samples/tests/samples/samples.status");
+ TestReadStatusFile("runtime/tests/vm/vm.status");
+ TestReadStatusFile("frog/tests/frog/frog.status");
+ TestReadStatusFile("compiler/tests/dartc/dartc.status");
+ TestReadStatusFile("client/tests/client/client.status");
+ TestReadStatusFile("client/tests/dartc/dartc.status");
+}
+
+
+void TestReadStatusFile(String filePath) {
+ File file = new File(getFilename(filePath));
+ if (file.existsSync()) {
+ List<Section> sections = new List<Section>();
+ ReadConfigurationInto(filePath, sections);
+ Expect.isTrue(sections.length > 0);
+ }
}
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698