Files
sdk/pkg/csslib/test/run_all.dart
T
terry@google.com 8992076c3c - Added @mixin and @include support for top-level and declarations.
- Added parameter support for mixins.
- Support var definition with multiple parameters as an @include parameter.
- Support @extend and @extend with nested selectors.
- Removed hoisting var and cycle checks - can only reference known vars.
- Added bunch of tests.

BUG=

Review URL: https://codereview.chromium.org//23819036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28555 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 21:03:04 +00:00

45 lines
1.7 KiB
Dart

// 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/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;
import 'mixin_test.dart' as mixin_test;
import 'extend_test.dart' as extend_test;
import 'big_1_test.dart' as big_1_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('mixin_test.dart')) mixin_test.main();
if (pattern.hasMatch('extend_test.dart')) extend_test.main();
if (pattern.hasMatch('big_1_test.dart')) big_1_test.main();
if (pattern.hasMatch('visitor_test.dart')) visitor_test.main();
if (pattern.hasMatch('error_test.dart')) error_test.main();
}