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

Issue 11275025: Clean up test.dart framework. (Closed)

Created:
8 years, 2 months ago by Emily Fortuna
Modified:
8 years, 1 month ago
Reviewers:
ahe, Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix usesWebDriver check, and the usage of config['browser'] vs config['runtime'] Committed: https://code.google.com/p/dart/source/detail?r=14110

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

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

Messages

Total messages: 4 (0 generated)
Emily Fortuna
Turns out this change I thought I had committed was tucked away in a git ...
8 years, 2 months ago (2012-10-25 01:11:26 UTC) #1
Mads Ager (google)
LGTM https://codereview.chromium.org/11275025/diff/5001/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/11275025/diff/5001/tools/testing/dart/test_runner.dart#newcode80 tools/testing/dart/test_runner.dart:80: bool usesWebDriver; I'm not sure what we gain ...
8 years, 1 month ago (2012-10-25 08:11:54 UTC) #2
Emily Fortuna
https://codereview.chromium.org/11275025/diff/5001/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/11275025/diff/5001/tools/testing/dart/test_runner.dart#newcode80 tools/testing/dart/test_runner.dart:80: bool usesWebDriver; On 2012/10/25 08:11:55, Mads Ager wrote: > ...
8 years, 1 month ago (2012-10-25 18:21:20 UTC) #3
Mads Ager (google)
8 years, 1 month ago (2012-10-25 18:47:44 UTC) #4
https://codereview.chromium.org/11275025/diff/5001/tools/testing/dart/test_ru...
File tools/testing/dart/test_runner.dart (right):

https://codereview.chromium.org/11275025/diff/5001/tools/testing/dart/test_ru...
tools/testing/dart/test_runner.dart:80: bool usesWebDriver;
On 2012/10/25 18:21:20, Emily Fortuna wrote:
> On 2012/10/25 08:11:55, Mads Ager wrote:
> > I'm not sure what we gain by having this as a member instead of the getter.
It
> > seems to be a lot more code for the same functionality?
> 
> I agree. The reason I changed this is I was finding I was having to add "ie10"
> in an awful lot of extra places sprinkled throughout our test framework, so
this
> was an attempt to avoid that. But perhaps the extra spots are worth having
less
> code.?

I strongly agree with your use of TestUtils.usesWebDriver as the one place to
have the list of browser runtimes!

What I was wondering is if it would be better to just keep the getter on line
167 of the 'before' part of this change list and not introduce the argument to
the constructor and the field. It seems to me that the getter will give the
correct result and that the amount of places where we have the string 'ie9' will
be the same (no changed line in this CL contains browser names as strings)? That
would reduce this patch set to only the change to fix the use of 'browserUsed'.
I'm fine either way so I'll leave it to your judgement.

Powered by Google App Engine
This is Rietveld 408576698