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

Issue 10970060: Parameterize 'new Options().script'. (Closed)

Created:
8 years, 3 months ago by ahe
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Parameterize 'new Options().script'. Committed: https://code.google.com/p/dart/source/detail?r=12763

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M dart/tools/testing/dart/drt_updater.dart View 2 chunks +3 lines, -1 line 0 comments Download
M dart/tools/testing/dart/test_runner.dart View 1 chunk +1 line, -1 line 0 comments Download
M dart/tools/testing/dart/test_suite.dart View 1 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
ahe
I need this to create my own main program that test co19 in various configurations. ...
8 years, 3 months ago (2012-09-24 09:03:49 UTC) #1
Mads Ager (google)
LGTM Which configurations do you need for co19 tests that do not fit into the ...
8 years, 3 months ago (2012-09-24 09:23:42 UTC) #2
William Hesse
LGTM. You didn't tell me that there were three other uses of Options.script, that needed ...
8 years, 3 months ago (2012-09-24 09:26:41 UTC) #3
ahe
On 2012/09/24 09:23:42, Mads Ager wrote: > LGTM > > Which configurations do you need ...
8 years, 3 months ago (2012-09-24 09:33:33 UTC) #4
ahe
Thank you, Bill and Mads! https://codereview.chromium.org/10970060/diff/1/dart/tools/testing/dart/test_suite.dart File dart/tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/10970060/diff/1/dart/tools/testing/dart/test_suite.dart#newcode1245 dart/tools/testing/dart/test_suite.dart:1245: static String testScriptPath = ...
8 years, 3 months ago (2012-09-24 09:41:44 UTC) #5
Bob Nystrom
https://codereview.chromium.org/10970060/diff/1/dart/tools/testing/dart/test_suite.dart File dart/tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/10970060/diff/1/dart/tools/testing/dart/test_suite.dart#newcode1245 dart/tools/testing/dart/test_suite.dart:1245: static String testScriptPath = new Options().script; On 2012/09/24 09:26:41, ...
8 years, 3 months ago (2012-09-24 17:23:50 UTC) #6
ahe
8 years, 3 months ago (2012-09-24 17:27:49 UTC) #7
On 2012/09/24 17:23:50, Bob Nystrom wrote:
>
https://codereview.chromium.org/10970060/diff/1/dart/tools/testing/dart/test_...
> File dart/tools/testing/dart/test_suite.dart (right):
> 
>
https://codereview.chromium.org/10970060/diff/1/dart/tools/testing/dart/test_...
> dart/tools/testing/dart/test_suite.dart:1245: static String testScriptPath =
new
> Options().script;
> On 2012/09/24 09:26:41, William Hesse wrote:
> > Comment this, that the test scripts depend on this being a script in the
> > dart/tools directory, and that if the main script using test_suite.dart is
not
> > there, the main script must set this to dart/tools/test.dart.
> 
> Is this another case where http://code.google.com/p/dart/issues/detail?id=1145
> would help?

Possibly. But generally, I think the Options API is hard to use without painting
yourself into a corner. A reusable app will do the following:

main() {
  appMain(new Options());
}

appMain(Options options) {
  // Stuff that would normally go into main.
}

Powered by Google App Engine
This is Rietveld 408576698