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

Unified Diff: utils/testrunner/layout_test_runner.dart

Issue 59093003: Remove unmaintained utils/testrunner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « utils/testrunner/layout_test_controller.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/testrunner/layout_test_runner.dart
diff --git a/utils/testrunner/layout_test_runner.dart b/utils/testrunner/layout_test_runner.dart
deleted file mode 100644
index e4b91ab65da219b51469ca17c145f6137380975a..0000000000000000000000000000000000000000
--- a/utils/testrunner/layout_test_runner.dart
+++ /dev/null
@@ -1,64 +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.
-
-part of layout_test;
-
-// The filters must be set by the caller that #sources this file.
-List includeFilters;
-List excludeFilters;
-
-/**
- * A special marker string used to separate group names and
- * identify non-debug output.
- */
-final marker = '###';
-
-class LayoutTestConfiguration extends unittest.Configuration {
- get autoStart => false;
- void onTestResult(unittest.TestCase testCase) {
- window.postMessage('done', '*'); // Unblock DRT
- }
-}
-
-filterTest(t) {
- var name = t.description.replaceAll(marker, " ");
- if (includeFilters.length > 0) {
- for (var f in includeFilters) {
- if (name.indexOf(f) >= 0) return true;
- }
- return false;
- } else if (excludeFilters.length > 0) {
- for (var f in excludeFilters) {
- if (name.indexOf(f) >= 0) return false;
- }
- return true;
- } else {
- return true;
- }
-}
-
-runTests(testMain) {
- unittest.groupSep = marker;
- unittest.unittestConfiguration = new LayoutTestConfiguration();
-
- // Create the set of test cases.
- unittest.group('', testMain);
-
- // Do any user-specified test filtering.
- unittest.filterTests(filterTest);
-
- // Filter to the test number in the search query.
- var testNum = int.parse(window.location.search.substring(6));
- if (testNum < 0 || testNum >= unittest.testCases.length) {
- print('#TEST NONEXISTENT');
- window.postMessage('done', '*'); // Unblock DRT
- } else {
- var name = unittest.testCases[testNum].description;
- print('#TEST $name');
- unittest.filterTests(name);
- // Run the test.
- print('Tests - ${unittest.testCases.length}');
- unittest.runTests();
- }
-}
« no previous file with comments | « utils/testrunner/layout_test_controller.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698