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

Unified Diff: pkg/csslib/test/run_all.dart

Issue 23168002: move csslib into dart svn (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « pkg/csslib/test/run.sh ('k') | pkg/csslib/test/selector_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/csslib/test/run_all.dart
diff --git a/pkg/csslib/test/run_all.dart b/pkg/csslib/test/run_all.dart
new file mode 100644
index 0000000000000000000000000000000000000000..517d5a0bf7d2503e8f5c4d27068f6e2a5d8fa809
--- /dev/null
+++ b/pkg/csslib/test/run_all.dart
@@ -0,0 +1,39 @@
+// Copyright (c) 2012, 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.
+
+/**
+ * This is a helper for run.sh. We try to run all of the Dart code in one
+ * instance of the Dart VM to reduce warm-up time.
+ */
+library run_impl;
+
+import 'dart:io';
+import 'package:unittest/unittest.dart';
+import 'package:unittest/compact_vm_config.dart';
+import 'testing.dart';
+
+import 'compiler_test.dart' as compiler_test;
+import 'declaration_test.dart' as declaration_test;
+import 'var_test.dart' as var_test;
+import 'nested_test.dart' as nested_test;
+import 'error_test.dart' as error_test;
+import 'selector_test.dart' as selector_test;
+import 'visitor_test.dart' as visitor_test;
+
+main() {
+ var args = new Options().arguments;
+
+ var pattern = new RegExp(args.length > 0 ? args[0] : '.');
+
+ useCompactVMConfiguration();
+ useMockMessages();
+
+ if (pattern.hasMatch('compiler_test.dart')) compiler_test.main();
+ if (pattern.hasMatch('declaration_test.dart')) declaration_test.main();
+ if (pattern.hasMatch('var_test.dart')) var_test.main();
+ if (pattern.hasMatch('nested_test.dart')) nested_test.main();
+ if (pattern.hasMatch('selector_test.dart')) selector_test.main();
+ if (pattern.hasMatch('visitor_test.dart')) visitor_test.main();
+ if (pattern.hasMatch('error_test.dart')) error_test.main();
+}
« no previous file with comments | « pkg/csslib/test/run.sh ('k') | pkg/csslib/test/selector_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698