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

Issue 10037027: unittest step2: bye bye to multiple entrypoints for unittest (Closed)

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

Description

unittest step2: bye bye to multiple entrypoints for unittest Committed: https://code.google.com/p/dart/source/detail?r=6480

Patch Set 1 #

Patch Set 2 : #

Total comments: 58

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+871 lines, -758 lines) Patch
M client/tests/client/dom/AsyncWindowTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/AudioContextTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/CSSTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/CacheTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/CallbacksTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/CanvasTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/CanvasUsingHtmlTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/CrossFrameTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/DOMConstructorsTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/DOMIsolatesTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/DOMParserTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/DartObjectLocalStorageTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/DocumentTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/EventsTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/ExceptionsTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/HTMLAudioElementTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/HTMLCollectionTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/HTMLElementTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/HiddenDom1Test.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/HiddenDom2Test.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/HistoryTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/IndexedDB1Test.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/IndexedDB2Test.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/InnerFrameTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/InstanceOfTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/IsolatesTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/KeyNameLocationTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/NativeGCTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M client/tests/client/dom/PerformanceApiTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/SVG1Test.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/SVG2Test.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/SVG3Test.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/StorageTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/TypedArrays1Test.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/TypedArrays2Test.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/TypedArrays3Test.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/TypedArrays4Test.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/TypingTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/WebGL1Test.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/WebSocketTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/WindowEqTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M client/tests/client/dom/WindowManglingTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M client/tests/client/dom/WindowNSMETest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M client/tests/client/dom/WindowOpenTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/WrapperTest.dart View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/XHRTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/dom/XSLTProcessorTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/client/html/AudioElementTest.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M client/tests/client/html/LocalStorageTests.dart View 1 1 chunk +0 lines, -2 lines 0 comments Download
M client/tests/client/html/TypedArrays1Test.dart View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M client/tests/client/html/TypedArrays2Test.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M client/tests/client/html/TypedArrays3Test.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M client/tests/client/html/TypedArrays4Test.dart View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M client/tests/client/html/html_tests.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M client/tests/client/json/json_tests.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M client/tests/client/samples/smoketest/dartWebBase_tests.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M frog/tests/frog/src/EvaluatorTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M frog/tests/frog/src/InheritanceOrderingTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M frog/tests/frog/src/NodeBufferTest.dart View 1 2 chunks +4 lines, -2 lines 0 comments Download
M frog/tests/frog/src/NodeConsoleHelper.dart View 1 2 chunks +1 line, -2 lines 0 comments Download
M frog/tests/frog/src/NodeConsoleTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M frog/tests/frog/src/NodeProcessHelper.dart View 1 2 chunks +1 line, -2 lines 0 comments Download
M frog/tests/frog/src/NodeProcessTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M frog/tests/frog/src/NodeTestHelper.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M frog/tests/frog/src/PrototypePatchingTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
A + frog/tests/frog/src/node_config.dart View 1 2 chunks +7 lines, -8 lines 0 comments Download
D frog/tests/frog/src/unittest_node.dart View 1 1 chunk +0 lines, -24 lines 0 comments Download
M lib/unittest/config.dart View 1 2 chunks +6 lines, -4 lines 0 comments Download
A + lib/unittest/dom_config.dart View 1 2 2 chunks +14 lines, -26 lines 0 comments Download
A lib/unittest/expectation.dart View 1 1 chunk +73 lines, -0 lines 0 comments Download
A + lib/unittest/html_config.dart View 1 2 chunks +12 lines, -23 lines 0 comments Download
M lib/unittest/html_print.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
D lib/unittest/shared.dart View 1 chunk +0 lines, -378 lines 0 comments Download
A lib/unittest/test_case.dart View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A lib/unittest/unittest.dart View 1 2 3 4 1 chunk +450 lines, -0 lines 0 comments Download
D lib/unittest/unittest_dom.dart View 1 chunk +0 lines, -59 lines 0 comments Download
D lib/unittest/unittest_html.dart View 1 chunk +0 lines, -59 lines 0 comments Download
D lib/unittest/unittest_vm.dart View 1 chunk +0 lines, -26 lines 0 comments Download
A + lib/unittest/vm_config.dart View 1 2 chunks +6 lines, -5 lines 0 comments Download
M samples/belay/tests/bcap_tests.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M samples/markdown/test/markdown_tests.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M samples/tests/samples/src/dartcombat/DartCombatTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M samples/tests/samples/src/lib/layout/LayoutTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M samples/tests/samples/src/lib/observable/ObservableTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M samples/tests/samples/src/lib/touch/TouchTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M samples/tests/samples/src/lib/util/UtilTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M samples/tests/samples/src/lib/view/ViewTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M samples/tests/samples/src/swarm/SwarmTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M samples/tests/samples/src/total/TotalTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M tests/isolate/src/APIv2_spawnBrowserNegativeTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M tests/isolate/src/APIv2_spawnBrowserTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M tests/isolate/src/APIv2_spawnUriBrowserTest.dart View 1 1 chunk +3 lines, -1 line 0 comments Download
M tests/isolate/src/APIv2_unresolvedPortsBrowserNegativeTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M tests/isolate/src/APIv2_unresolvedPortsBrowserTest.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M tests/utils/src/DartdocTest.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/utils/src/MarkdownTest.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/import_mapper/src/import_mapper_tests.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/pub_tests.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/test_pub.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/tip/froggertest.html View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Siggi Cherem (dart-lang)
this step focuses on merging the libraries and using an external configuration. It looks more ...
8 years, 8 months ago (2012-04-12 01:13:53 UTC) #1
Bob Nystrom
Lots of questions, but this is coming along great. https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client/json/json_tests.dart File client/tests/client/json/json_tests.dart (right): https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client/json/json_tests.dart#newcode13 client/tests/client/json/json_tests.dart:13: ...
8 years, 8 months ago (2012-04-12 16:45:49 UTC) #2
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client/json/json_tests.dart File client/tests/client/json/json_tests.dart (right): https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client/json/json_tests.dart#newcode13 client/tests/client/json/json_tests.dart:13: useHtmlConfiguration(); On 2012/04/12 16:45:49, Bob Nystrom wrote: > Is ...
8 years, 8 months ago (2012-04-12 17:36:28 UTC) #3
vsm
A couple quick comments. https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client/dom/AsyncWindowTest.dart File client/tests/client/dom/AsyncWindowTest.dart (right): https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client/dom/AsyncWindowTest.dart#newcode3 client/tests/client/dom/AsyncWindowTest.dart:3: #import('../../../../lib/unittest/dom_config.dart'); It's unfortunate that this ...
8 years, 8 months ago (2012-04-12 17:41:45 UTC) #4
Emily Fortuna
https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/html_print.dart File lib/unittest/html_print.dart (right): https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/html_print.dart#newcode5 lib/unittest/html_print.dart:5: /** This file is sourced by both dom_config.dart and ...
8 years, 8 months ago (2012-04-12 17:48:42 UTC) #5
Bob Nystrom
LGTM! https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/config.dart File lib/unittest/config.dart (right): https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/config.dart#newcode41 lib/unittest/config.dart:41: for (final t in _tests) { On 2012/04/12 ...
8 years, 8 months ago (2012-04-12 18:01:37 UTC) #6
Emily Fortuna
Don't commit yet, this still needs to be fixed! (see below) https://chromiumcodereview.appspot.com/10037027/diff/10001/lib/unittest/unittest.dart File lib/unittest/unittest.dart (right): ...
8 years, 8 months ago (2012-04-12 19:24:40 UTC) #7
Siggi Cherem (dart-lang)
8 years, 8 months ago (2012-04-12 21:13:36 UTC) #8
Thanks for all the comments. 

All set - I'm running one last round of local tests and submitting.

https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client...
File client/tests/client/dom/AsyncWindowTest.dart (right):

https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client...
client/tests/client/dom/AsyncWindowTest.dart:3:
#import('../../../../lib/unittest/dom_config.dart');
On 2012/04/12 17:41:45, vsm wrote:
> It's unfortunate that this requires an extra line in our tests.

yeah. For many tests the extra line will go away later on (at least for test
that are not specific for a particular configuration).

https://chromiumcodereview.appspot.com/10037027/diff/1001/client/tests/client...
client/tests/client/dom/AsyncWindowTest.dart:7:
useDomConfiguration(isLayoutTest: true);
On 2012/04/12 17:41:45, vsm wrote:
> I think these can now go for all tests in the main dart repo (the
isLayoutTest:
> true part at least).  The dartium bot only runs these as via test.dart.
> 
> There are a handful of layout tests in the Dartium repo that use the
framework. 
> They'll need to be updated and probably need isLayoutTest set as well.

Thanks, fixed.

https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/html_p...
File lib/unittest/html_print.dart (right):

https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/html_p...
lib/unittest/html_print.dart:5: /** This file is sourced by both dom_config.dart
and html_config.dart. */
On 2012/04/12 17:48:42, Emily Fortuna wrote:
> +1 helpful comments about source!

I really liked this suggestion from Eli :)

https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/unitte...
File lib/unittest/unittest.dart (right):

https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/unitte...
lib/unittest/unittest.dart:206: Function _later(Function callback) {
On 2012/04/12 17:48:42, Emily Fortuna wrote:
> Perhaps I missed it, but where is this function called?

it is not yet (see note below about step 3 :-))

https://chromiumcodereview.appspot.com/10037027/diff/1001/lib/unittest/unitte...
lib/unittest/unittest.dart:219: } else if (arg3 == _sentinel) {
On 2012/04/12 17:48:42, Emily Fortuna wrote:
> arg2

nice catch

https://chromiumcodereview.appspot.com/10037027/diff/10001/lib/unittest/unitt...
File lib/unittest/unittest.dart (right):

https://chromiumcodereview.appspot.com/10037027/diff/10001/lib/unittest/unitt...
lib/unittest/unittest.dart:226: } else if (arg3 == _Sentinel.value) {
On 2012/04/12 19:24:41, Emily Fortuna wrote:
> arg2!!!

Done.

Powered by Google App Engine
This is Rietveld 408576698