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

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

Issue 24077003: fix polymer tests -- replace run.sh and run tests using bots (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « pkg/polymer/test/run.sh ('k') | pkg/polymer/test/testing.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/run_all.dart
diff --git a/pkg/polymer/test/run_all.dart b/pkg/polymer/test/run_all.dart
deleted file mode 100644
index 6191492f729bdc8f4152f13853dd7a1f7e505209..0000000000000000000000000000000000000000
--- a/pkg/polymer/test/run_all.dart
+++ /dev/null
@@ -1,68 +0,0 @@
-// 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 'package:unittest/unittest.dart';
-import 'package:polymer/testing/content_shell_test.dart';
-
-import 'compiler_test.dart' as compiler_test;
-import 'css_test.dart' as css_test;
-import 'transform/all_phases_test.dart' as all_phases_test;
-import 'transform/code_extractor_test.dart' as code_extractor_test;
-import 'transform/import_inliner_test.dart' as import_inliner_test;
-import 'transform/polyfill_injector_test.dart' as polyfill_injector_test;
-import 'transform/script_compactor_test.dart' as script_compactor_test;
-import 'utils_test.dart' as utils_test;
-import 'linter_test.dart' as linter_test;
-
-main() {
- var args = new Options().arguments;
- var pattern = new RegExp(args.length > 0 ? args[0] : '.');
-
- useCompactVMConfiguration();
-
- void addGroup(testFile, testMain) {
- if (pattern.hasMatch(testFile)) {
- group(testFile.replaceAll('_test.dart', ':'), testMain);
- }
- }
-
- addGroup('linter_test.dart', linter_test.main);
- addGroup('compiler_test.dart', compiler_test.main);
- addGroup('css_test.dart', css_test.main);
- addGroup('utils_test.dart', utils_test.main);
- addGroup('transform/code_extractor_test.dart', code_extractor_test.main);
- addGroup('transform/import_inliner_test.dart', import_inliner_test.main);
- addGroup('transform/script_compactor_test.dart', script_compactor_test.main);
- addGroup('transform/polyfill_injector_test.dart',
- polyfill_injector_test.main);
- addGroup('transform/all_phases_test.dart', all_phases_test.main);
Siggi Cherem (dart-lang) 2013/09/10 20:52:00 not important, but maybe we can keep this file wit
Jennifer Messerly 2013/09/10 21:17:10 chatted about this in person, decided to remove th
-
- endToEndTests('data/unit/web', 'data/out');
-
- // Note: if you're adding more render test suites, make sure to update run.sh
- // as well for convenient baseline diff/updating.
-
- // TODO(jmesserly): figure out why this fails in content_shell but works in
- // Dartium and Firefox when using the ShadowDOM polyfill.
- exampleTest('../example/component/news', ['--no-shadowdom']..addAll(args));
-}
-
-void exampleTest(String path, [List args]) {
- // TODO(sigmund): renderTests currently contatenates [path] with the out
- // folder. This can be a problem with relative paths that go up (like todomvc
- // above, which has '../../../'). If we continue running tests with
- // test/run.sh, we should fix this. For now we work around this problem by
- // using a long path 'data/out/example/test'. That way we avoid dumping output
- // in the source-tree.
- renderTests(path, '$path/test', '$path/test/expected',
- 'data/out/example/test', arguments: args);
-}
« no previous file with comments | « pkg/polymer/test/run.sh ('k') | pkg/polymer/test/testing.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698