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

Unified Diff: utils/testrunner/layout_test_runner.dart

Issue 14247033: Updated testrunner: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « 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
===================================================================
--- utils/testrunner/layout_test_runner.dart (revision 21957)
+++ utils/testrunner/layout_test_runner.dart (working copy)
@@ -2,15 +2,18 @@
// 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;
-// TODO(gram): dart2js is not handling 'part of' properly yet; when it
-// does uncomment this.
-//part of layout_test;
+/**
+ * A special marker string used to separate group names and
+ * identify non-debug output.
+ */
+final marker = '###';
-List excludeFilters;
-
class LayoutTestConfiguration extends unittest.Configuration {
get autoStart => false;
void onTestResult(unittest.TestCase testCase) {
@@ -19,7 +22,7 @@
}
filterTest(t) {
- var name = t.description.replaceAll("###", " ");
+ var name = t.description.replaceAll(marker, " ");
if (includeFilters.length > 0) {
for (var f in includeFilters) {
if (name.indexOf(f) >= 0) return true;
@@ -36,8 +39,8 @@
}
runTests(testMain) {
- unittest.groupSep = '###';
- unittest.configure(new LayoutTestConfiguration());
+ unittest.groupSep = marker;
+ unittest.unittestConfiguration = new LayoutTestConfiguration();
// Create the set of test cases.
unittest.group('', testMain);
« 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