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

Unified Diff: tests/lib/analyzer/test_config.dart

Issue 12475004: Add dart analyzer test suite 'analyze_library' that fails if we (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/analyzer/analyze_library.status ('k') | tools/test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/analyzer/test_config.dart
diff --git a/tests/lib/analyzer/test_config.dart b/tests/lib/analyzer/test_config.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2189bcf46306c9fd1ce8e42a2a87803ab7378303
--- /dev/null
+++ b/tests/lib/analyzer/test_config.dart
@@ -0,0 +1,31 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library analyze_library_test_config;
+
+import 'dart:io';
+import '../../../tools/testing/dart/test_suite.dart';
+
+class AnalyzeLibraryTestSuite extends DartcCompilationTestSuite {
+ final libraries = [ 'async', 'core', 'crypto', 'io', 'isolate', 'json',
+ 'math', 'mirrors', 'scalarlist', 'typeddata', 'uri',
+ 'utf' ];
+
+ AnalyzeLibraryTestSuite(Map configuration)
+ : super(configuration,
+ 'analyze_library',
+ 'sdk',
+ [ 'lib' ],
+ ['tests/lib/analyzer/analyze_library.status'],
+ allStaticClean: true);
+
+ bool isTestFile(String filename) {
+ var sep = Platform.pathSeparator;
+ return libraries.any((String lib) {
+ return filename.endsWith('lib$sep$lib$sep$lib.dart');
+ });
+ }
+
+ bool get listRecursively => true;
+}
« no previous file with comments | « tests/lib/analyzer/analyze_library.status ('k') | tools/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698