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

Unified Diff: samples/tests/dartc/test_config.dart

Issue 10343008: reenable some dartc tests that have been disabled accidentally. Move (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
Index: samples/tests/dartc/test_config.dart
diff --git a/samples/tests/dartc/test_config.dart b/samples/tests/dartc/test_config.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a9b575ecb80e5bd3b70bc6a9cea96f198dd8acc5
--- /dev/null
+++ b/samples/tests/dartc/test_config.dart
@@ -0,0 +1,51 @@
+// Copyright (c) 2011, 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("client_dartc_test_config");
+
+#import("../../../tools/testing/dart/test_suite.dart");
+
+class SamplesDartcTestSuite extends DartcCompilationTestSuite {
+ SamplesDartcTestSuite(Map configuration)
+ : super(configuration,
+ 'dartc',
+ 'samples',
+ [ 'actors',
+ 'belay',
+ 'calculator',
+ 'chat',
+ 'clock',
+ 'dartcombat',
+ 'hi',
+ 'isolate',
+ 'isolate_html',
+ 'leap',
+ 'logo',
+ 'markdown',
+ 'matrix',
+ 'pond',
+ 'proxy',
+ 'sample_extension',
+ 'slider',
+ 'spirodraw',
+ 'sunflower',
+ 'swarm',
+ 'tests',
+ 'third_party',
+ 'time',
+ 'total',
+ 'ui_lib',
+ ],
+ ['samples/tests/dartc/dartc.status']);
+
+ bool isTestFile(String filename) {
+ if (!filename.endsWith(".dart")) return false;
+ // Using readOptionsFromFile here causes the file to be read twice,
+ // because readOptionsFromFile is called again in the superclass.
+ // Avoid this in new code.
+ return readOptionsFromFile(filename)["containsLeadingHash"];
+ }
+
+ bool listRecursively() => true;
+}
« no previous file with comments | « samples/tests/dartc/dartc.status ('k') | tools/test.dart » ('j') | tools/test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698