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

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

Issue 11262028: Testing support for running tests minified in dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/bots/compiler.py ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 false, 124 false,
125 'bool'), 125 'bool'),
126 new _TestOptionSpecification( 126 new _TestOptionSpecification(
127 'host_checked', 127 'host_checked',
128 'Run compiler in checked mode', 128 'Run compiler in checked mode',
129 ['--host-checked'], 129 ['--host-checked'],
130 [], 130 [],
131 false, 131 false,
132 'bool'), 132 'bool'),
133 new _TestOptionSpecification( 133 new _TestOptionSpecification(
134 'minify',
135 'Enable minification in the compiler',
136 ['--minify'],
137 [],
138 false,
139 'bool'),
140 new _TestOptionSpecification(
134 'timeout', 141 'timeout',
135 'Timeout in seconds', 142 'Timeout in seconds',
136 ['-t', '--timeout'], 143 ['-t', '--timeout'],
137 [], 144 [],
138 -1, 145 -1,
139 'int'), 146 'int'),
140 new _TestOptionSpecification( 147 new _TestOptionSpecification(
141 'progress', 148 'progress',
142 'Progress indication mode', 149 'Progress indication mode',
143 ['-p', '--progress'], 150 ['-p', '--progress'],
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // progress indication is requested. 471 // progress indication is requested.
465 if (configuration['verbose'] && configuration['progress'] != 'buildbot') { 472 if (configuration['verbose'] && configuration['progress'] != 'buildbot') {
466 configuration['progress'] = 'verbose'; 473 configuration['progress'] = 'verbose';
467 } 474 }
468 475
469 // Create the artificial 'unchecked' options that test status files 476 // Create the artificial 'unchecked' options that test status files
470 // expect. 477 // expect.
471 configuration['unchecked'] = !configuration['checked']; 478 configuration['unchecked'] = !configuration['checked'];
472 configuration['host_unchecked'] = !configuration['host_checked']; 479 configuration['host_unchecked'] = !configuration['host_checked'];
473 480
481 configuration['nominify'] = !configuration['nominify'];
ahe 2012/10/25 08:56:31 I think the right-hand side should be !configurati
482
474 String runtime = configuration['runtime']; 483 String runtime = configuration['runtime'];
475 if (runtime == 'firefox') { 484 if (runtime == 'firefox') {
476 configuration['runtime'] == 'ff'; 485 configuration['runtime'] == 'ff';
477 } 486 }
478 487
479 configuration['browser'] = TestUtils.isBrowserRuntime(runtime); 488 configuration['browser'] = TestUtils.isBrowserRuntime(runtime);
480 489
481 // Set the javascript command line flag for less verbose status files. 490 // Set the javascript command line flag for less verbose status files.
482 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); 491 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime);
483 492
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 return option; 658 return option;
650 } 659 }
651 } 660 }
652 print('Unknown test option $name'); 661 print('Unknown test option $name');
653 exit(1); 662 exit(1);
654 } 663 }
655 664
656 665
657 List<_TestOptionSpecification> _options; 666 List<_TestOptionSpecification> _options;
658 } 667 }
OLDNEW
« no previous file with comments | « tools/bots/compiler.py ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698