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

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

Issue 9599015: documented component (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix flag description Created 8 years, 9 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 | « tools/test.dart ('k') | no next file » | 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 8
9 List<String> defaultTestSelectors = 9 List<String> defaultTestSelectors =
10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 TestOptionsParser() { 54 TestOptionsParser() {
55 _options = 55 _options =
56 [ new _TestOptionSpecification( 56 [ new _TestOptionSpecification(
57 'mode', 57 'mode',
58 'Mode in which to run the tests', 58 'Mode in which to run the tests',
59 ['-m', '--mode'], 59 ['-m', '--mode'],
60 ['all', 'debug', 'release'], 60 ['all', 'debug', 'release'],
61 'debug'), 61 'debug'),
62 new _TestOptionSpecification( 62 new _TestOptionSpecification(
63 'component', 63 'component',
64 'The component to test against', 64 '''
65 Controls how dart code is compiled and executed.
66
67 vm: Run dart code on the standalone dart vm.
68
69 frog: Compile dart code by running frog on the standalone dart vm, and
70 run the resulting javascript on D8.
71
72 leg: Compile dart code by running leg on the standalone dart vm, and
73 run the resulting javascript on D8.
74
75 frogsh: Compile dart code by running frog on node.js, and run the
76 resulting javascript on the same instance of node.js.
77
78 dartium: Run dart code in a type="application/dart" script tag in a
79 dartium build of DumpRenderTree.
80
81 chromium: Obsolete, not used, will be removed.
82
83 frogium: Compile dart code by running frog on the standalone dart vm,
84 and run the resulting javascript in a javascript script tag in
85 a dartium build of DumpRenderTree.
86
87 legium: Compile dart code by running leg on the standalone dart vm,
88 and run the resulting javascript in a javascript script tag in
89 a dartium build of DumpRenderTree.
90
91 webdriver: Compile dart code by running frog on the standalone dart vm,
92 and then run the resulting javascript in the browser that is specified
93 by the --browser switch (e.g. chrome, safari, ff, etc.).
94
95 dartc: Run dart code through the dartc static analyzer (does not
96 execute dart code).
97 ''',
65 ['-c', '--component'], 98 ['-c', '--component'],
66 ['most', 'vm', 'dartc', 'frog', 'frogsh', 'leg', 99 ['most', 'vm', 'dartc', 'frog', 'frogsh', 'leg',
67 'dartium', 'chromium', 'frogium', 'legium', 'webdriver'], 100 'dartium', 'chromium', 'frogium', 'legium', 'webdriver'],
68 'vm'), 101 'vm'),
69 new _TestOptionSpecification( 102 new _TestOptionSpecification(
70 'arch', 103 'arch',
71 'The architecture to run tests for', 104 'The architecture to run tests for',
72 ['-a', '--arch'], 105 ['-a', '--arch'],
73 ['all', 'ia32', 'x64', 'simarm'], 106 ['all', 'ia32', 'x64', 'simarm'],
74 'ia32'), 107 'ia32'),
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 return option; 536 return option;
504 } 537 }
505 } 538 }
506 print('Unknown test option $name'); 539 print('Unknown test option $name');
507 exit(1); 540 exit(1);
508 } 541 }
509 542
510 543
511 List<_TestOptionSpecification> _options; 544 List<_TestOptionSpecification> _options;
512 } 545 }
OLDNEW
« no previous file with comments | « tools/test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698