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

Unified Diff: utils/testrunner/options.dart

Issue 10914049: Added support for layout render tests. These use expected values for the text render output from Du… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « utils/testrunner/html_wrap_task.dart ('k') | utils/testrunner/testrunner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/testrunner/options.dart
===================================================================
--- utils/testrunner/options.dart (revision 11963)
+++ utils/testrunner/options.dart (working copy)
@@ -23,6 +23,9 @@
parser.addFlag('checked', defaultsTo: false,
help: 'Run tests in checked mode.');
+ parser.addFlag('layout', defaultsTo: false,
+ help: 'Run layout tests.');
+
parser.addOption('timeout', abbr: 't',
help: 'Timeout in seconds', defaultsTo: '60');
@@ -35,7 +38,8 @@
'file name or one of stdout, stderr, or none.');
parser.addOption('list-format',
- defaultsTo: '${Macros.testfile}${Macros.testGroup}${Macros.testDescription}',
+ defaultsTo:
+ '${Macros.testfile}${Macros.testGroup}${Macros.testDescription}',
help: 'Format for test list result output.');
parser.addOption('pass-format',
@@ -133,6 +137,10 @@
'messages for a single test.',
defaultsTo: false);
+ parser.addFlag('generate-renders',
+ help: 'Generate .render files for layout tests.',
+ defaultsTo: false);
+
parser.addOption('unittest', help: '#import path for unit test library.');
return parser;
@@ -238,6 +246,10 @@
print('--include and --exclude are mutually exclusive.');
return false;
}
+ if (config['layout'] && config['runtime'] == 'vm') {
+ print('Layout tests must use --runtime values of "drt-dart" or "drt-js"');
+ return false;
+ }
return true;
}
« no previous file with comments | « utils/testrunner/html_wrap_task.dart ('k') | utils/testrunner/testrunner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698