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

Issue 11862002: Make 'useXConfiguration' check for an existing configuration. This is so that it (Closed)

Created:
7 years, 11 months ago by Siggi Cherem (dart-lang)
Modified:
7 years, 11 months ago
Reviewers:
gram
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make 'useXConfiguration' check for an existing configuration. This is so that it is possible to compose tests: testa() => useVmConfig(); testb() => useVmConfig(); testa(); This is now important because we moved some of the configuration state to onInit, so by the time the second configure is called, the initialization might have already been done. An alternative would be to only allow to call configure once. Thoughts? Committed: https://code.google.com/p/dart/source/detail?r=16981

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M pkg/unittest/lib/compact_vm_config.dart View 1 chunk +1 line, -2 lines 2 comments Download
M pkg/unittest/lib/html_config.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/unittest/lib/html_enhanced_config.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/unittest/lib/html_individual_config.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/unittest/lib/html_layout_config.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/unittest/lib/interactive_html_config.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/unittest/lib/vm_config.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Siggi Cherem (dart-lang)
... and another option to consider is adding a boolean argument to configure so you ...
7 years, 11 months ago (2013-01-11 18:18:26 UTC) #1
gram
lgtm https://codereview.chromium.org/11862002/diff/1/pkg/unittest/lib/compact_vm_config.dart File pkg/unittest/lib/compact_vm_config.dart (left): https://codereview.chromium.org/11862002/diff/1/pkg/unittest/lib/compact_vm_config.dart#oldcode169 pkg/unittest/lib/compact_vm_config.dart:169: void notifyController(String msg) {} I assume this is ...
7 years, 11 months ago (2013-01-11 18:48:49 UTC) #2
Siggi Cherem (dart-lang)
7 years, 11 months ago (2013-01-11 19:03:13 UTC) #3
thanks!

https://codereview.chromium.org/11862002/diff/1/pkg/unittest/lib/compact_vm_c...
File pkg/unittest/lib/compact_vm_config.dart (left):

https://codereview.chromium.org/11862002/diff/1/pkg/unittest/lib/compact_vm_c...
pkg/unittest/lib/compact_vm_config.dart:169: void notifyController(String msg)
{}
On 2013/01/11 18:48:49, gram wrote:
> I assume this is okay, although it is not related to the rest of the CL.

yeah - in a previous CL I made this a subclass of vm_config, which already has a
method just like it.

Powered by Google App Engine
This is Rietveld 408576698