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

Side by Side Diff: tools/testing/dart/test_options.dart

Issue 14757019: Add browser controller and allow it to be used under a flag. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test_options_parser; 5 library test_options_parser;
6 6
7 import "dart:io"; 7 import "dart:io";
8 import "dart:math"; 8 import "dart:math";
9 import "drt_updater.dart"; 9 import "drt_updater.dart";
10 import "test_suite.dart"; 10 import "test_suite.dart";
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 false, 294 false,
295 'bool' 295 'bool'
296 ), 296 ),
297 new _TestOptionSpecification( 297 new _TestOptionSpecification(
298 'write_debug_log', 298 'write_debug_log',
299 'Don\'t write debug messages to stdout but rather to a logfile.', 299 'Don\'t write debug messages to stdout but rather to a logfile.',
300 ['--write-debug-log'], 300 ['--write-debug-log'],
301 [], 301 [],
302 false, 302 false,
303 'bool' 303 'bool'
304 ),
305 new _TestOptionSpecification(
306 'use_browser_controller',
307 'Use the new selenium replacement browser-controller.',
308 ['--use_browser_controller'],
309 [],
310 false,
311 'bool'
304 ),]; 312 ),];
305 } 313 }
306 314
307 315
308 /** 316 /**
309 * Parse a list of strings as test options. 317 * Parse a list of strings as test options.
310 * 318 *
311 * Returns a list of configurations in which to run the 319 * Returns a list of configurations in which to run the
312 * tests. Configurations are maps mapping from option keys to 320 * tests. Configurations are maps mapping from option keys to
313 * values. When encountering the first non-option string, the rest 321 * values. When encountering the first non-option string, the rest
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 return option; 700 return option;
693 } 701 }
694 } 702 }
695 print('Unknown test option $name'); 703 print('Unknown test option $name');
696 exit(1); 704 exit(1);
697 } 705 }
698 706
699 707
700 List<_TestOptionSpecification> _options; 708 List<_TestOptionSpecification> _options;
701 } 709 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698