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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("StatusFileParserTest"); 5 #library("StatusFileParserTest");
6 6
7 #import("../../../tools/testing/dart/status_file_parser.dart"); 7 #import("../../../tools/testing/dart/status_file_parser.dart");
8 8
9 9
10 main() { 10 void main() {
11 ReadConfigurationInto("tests/co19/co19-compiler.status", new List<Section>()); 11 TestReadStatusFile("tests/co19/co19-compiler.status");
12 ReadConfigurationInto("tests/co19/co19-runtime.status", new List<Section>()); 12 TestReadStatusFile("tests/co19/co19-runtime.status");
13 ReadConfigurationInto("tests/corelib/corelib.status", new List<Section>()); 13 TestReadStatusFile("tests/corelib/corelib.status");
14 ReadConfigurationInto("tests/isolate/isolate.status", new List<Section>()); 14 TestReadStatusFile("tests/isolate/isolate.status");
15 ReadConfigurationInto("tests/language/language.status", new List<Section>()); 15 TestReadStatusFile("tests/language/language.status");
16 ReadConfigurationInto("tests/standalone/standalone.status", 16 TestReadStatusFile("tests/standalone/standalone.status");
17 new List<Section>()); 17 TestReadStatusFile("tests/stub-generator/stub-generator.status");
18 ReadConfigurationInto("tests/stub-generator/stub-generator.status", 18 TestReadStatusFile("samples/tests/samples/samples.status");
19 new List<Section>()); 19 TestReadStatusFile("runtime/tests/vm/vm.status");
20 ReadConfigurationInto("samples/tests/samples/samples.status", 20 TestReadStatusFile("frog/tests/frog/frog.status");
21 new List<Section>()); 21 TestReadStatusFile("compiler/tests/dartc/dartc.status");
22 ReadConfigurationInto("runtime/tests/vm/vm.status", new List<Section>()); 22 TestReadStatusFile("client/tests/client/client.status");
23 ReadConfigurationInto("frog/tests/frog/frog.status", new List<Section>()); 23 TestReadStatusFile("client/tests/dartc/dartc.status");
24 ReadConfigurationInto("compiler/tests/dartc/dartc.status",
25 new List<Section>());
26 ReadConfigurationInto("client/tests/client/client.status",
27 new List<Section>());
28 ReadConfigurationInto("client/tests/dartc/dartc.status",
29 new List<Section>());
30 } 24 }
25
26
27 void TestReadStatusFile(String filePath) {
28 File file = new File(getFilename(filePath));
29 if (file.existsSync()) {
30 List<Section> sections = new List<Section>();
31 ReadConfigurationInto(filePath, sections);
32 Expect.isTrue(sections.length > 0);
33 }
34 }
OLDNEW
« 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