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

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

Issue 10034002: Selenium / Dartium cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove string+ Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/tests/client/client.status ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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:builtin"); 8 #import("dart:builtin");
9 #import("drt_updater.dart"); 9 #import("drt_updater.dart");
10 10
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 new Platform().operatingSystem() != 'windows') { 408 new Platform().operatingSystem() != 'windows') {
409 isValid = false; 409 isValid = false;
410 print("Warning cannot run Internet Explorer on non-Windows operating" + 410 print("Warning cannot run Internet Explorer on non-Windows operating" +
411 " system."); 411 " system.");
412 } 412 }
413 if (config['shard'] < 1 || config['shard'] > config['shards']) { 413 if (config['shard'] < 1 || config['shard'] > config['shards']) {
414 isValid = false; 414 isValid = false;
415 print("Error: shard index is ${config['shard']} out of " + 415 print("Error: shard index is ${config['shard']} out of " +
416 "${config['shards']} shards"); 416 "${config['shards']} shards");
417 } 417 }
418 if (config['runtime'] == 'dartium' && config['compiler'] == 'none' &&
419 config['checked']) {
420 // TODO(vsm): Set the DART_FLAGS environment appropriately when
421 // invoking Selenium to support checked mode. It's not clear
422 // the current selenium API supports this.
423 isValid = false;
424 print("Warning: checked mode is not yet supported for dartium tests.");
425 }
418 return isValid; 426 return isValid;
419 } 427 }
420 428
421 /** 429 /**
422 * Recursively expand a configuration with multiple values per key 430 * Recursively expand a configuration with multiple values per key
423 * into a list of configurations with exactly one value per key. 431 * into a list of configurations with exactly one value per key.
424 */ 432 */
425 List<Map> _expandConfigurations(Map configuration) { 433 List<Map> _expandConfigurations(Map configuration) {
426 // Expand the pseudo-values such as 'all'. 434 // Expand the pseudo-values such as 'all'.
427 if (configuration['arch'] == 'all') { 435 if (configuration['arch'] == 'all') {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 return option; 627 return option;
620 } 628 }
621 } 629 }
622 print('Unknown test option $name'); 630 print('Unknown test option $name');
623 exit(1); 631 exit(1);
624 } 632 }
625 633
626 634
627 List<_TestOptionSpecification> _options; 635 List<_TestOptionSpecification> _options;
628 } 636 }
OLDNEW
« no previous file with comments | « client/tests/client/client.status ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698