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

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

Issue 23576012: Added .scss transform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cleanup Created 7 years, 3 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: pkg/csslib/test/run_all.dart
diff --git a/pkg/csslib/test/run_all.dart b/pkg/csslib/test/run_all.dart
index 517d5a0bf7d2503e8f5c4d27068f6e2a5d8fa809..c13c48f4ebd263940e7dee347c945988f6b91e13 100644
--- a/pkg/csslib/test/run_all.dart
+++ b/pkg/csslib/test/run_all.dart
@@ -14,6 +14,7 @@ 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;
@@ -21,6 +22,8 @@ import 'error_test.dart' as error_test;
import 'selector_test.dart' as selector_test;
import 'visitor_test.dart' as visitor_test;
+import 'transform/simple_test.dart' as simple_test;
+
main() {
var args = new Options().arguments;
@@ -29,11 +32,19 @@ main() {
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();
+ void addGroup(testFile, testMain) {
+ if (pattern.hasMatch(testFile)) {
+ group(testFile.replaceAll('_test.dart', ':'), testMain);
+ }
+ }
+
+ addGroup('compiler_test.dart', compiler_test.main);
+ addGroup('declaration_test.dart', declaration_test.main);
+ addGroup('var_test.dart', var_test.main);
+ addGroup('nested_test.dart', nested_test.main);
+ addGroup('selector_test.dart', selector_test.main);
+ addGroup('visitor_test.dart', visitor_test.main);
+ addGroup('error_test.dart', error_test.main);
+
+ addGroup('transform/simple_test.dart', simple_test.main);
}

Powered by Google App Engine
This is Rietveld 408576698