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

Issue 10153005: unittest step 3 and 4: remove TestFramework.dart, make test.dart use (Closed)

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

Description

unittest step 3 and 4: remove TestFramework.dart, make test.dart use unittest.dart, so tests written with it will work both in the vm and browsers. This involved a few changes: - removing uses of TestFramework, use unittest instead (in test.dart and some isolate tests) - making test.dart use unittest and html_config to wrap standalone tests as browser tests. This is done for tests written with or without unittest - unittest: trap errors at the top-level, so we can detect errors during setup, but also to detect normal failures in tests that are wrapped by test.dart. Committed: https://code.google.com/p/dart/source/detail?r=6963

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 35

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : new version with runsLater #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 5

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+724 lines, -1387 lines) Patch
M lib/unittest/config.dart View 2 chunks +9 lines, -2 lines 0 comments Download
M lib/unittest/dom_config.dart View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -3 lines 0 comments Download
M lib/unittest/html_config.dart View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -3 lines 0 comments Download
M lib/unittest/html_enhanced_config.dart View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +19 lines, -10 lines 0 comments Download
M lib/unittest/html_print.dart View 2 chunks +18 lines, -9 lines 0 comments Download
M lib/unittest/unittest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +174 lines, -71 lines 0 comments Download
M lib/unittest/vm_config.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M samples/tests/samples/src/proxy/MintMakerFullyIsolated_generatedTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -29 lines 0 comments Download
M samples/tests/samples/src/proxy/MintMakerFullyIsolated_testSource.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -22 lines 0 comments Download
M samples/tests/samples/src/proxy/MintMakerPromiseWithStubs_generatedTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +26 lines, -34 lines 0 comments Download
M samples/tests/samples/src/proxy/MintMakerPromiseWithStubs_testSource.dart View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -29 lines 0 comments Download
M samples/tests/samples/src/proxy/MintMakerRpcTest.dart View 1 chunk +3 lines, -1 line 0 comments Download
M samples/tests/samples/src/proxy/PromiseBasedTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +41 lines, -45 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -12 lines 0 comments Download
M tests/isolate/isolate-leg.status View 1 1 chunk +3 lines, -6 lines 0 comments Download
D tests/isolate/src/APIv2_spawnBrowserNegativeTest.dart View 1 chunk +0 lines, -29 lines 0 comments Download
D tests/isolate/src/APIv2_spawnBrowserTest.dart View 1 chunk +0 lines, -29 lines 0 comments Download
A + tests/isolate/src/APIv2_spawnFunctionNegativeTest.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -9 lines 0 comments Download
A + tests/isolate/src/APIv2_spawnFunctionTest.dart View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -8 lines 0 comments Download
D tests/isolate/src/APIv2_spawnStandaloneNegativeTest.dart View 1 chunk +0 lines, -22 lines 0 comments Download
D tests/isolate/src/APIv2_spawnStandaloneTest.dart View 1 chunk +0 lines, -22 lines 0 comments Download
D tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart View 1 chunk +0 lines, -29 lines 0 comments Download
D tests/isolate/src/APIv2_spawnUriBrowserTest.dart View 1 chunk +0 lines, -29 lines 0 comments Download
A + tests/isolate/src/APIv2_spawnUriNegativeTest.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -7 lines 0 comments Download
A + tests/isolate/src/APIv2_spawnUriTest.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -7 lines 0 comments Download
D tests/isolate/src/APIv2_unresolvedPortsBrowserNegativeTest.dart View 1 chunk +0 lines, -53 lines 0 comments Download
D tests/isolate/src/APIv2_unresolvedPortsBrowserTest.dart View 1 chunk +0 lines, -53 lines 0 comments Download
A + tests/isolate/src/APIv2_unresolvedPortsNegativeTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -11 lines 0 comments Download
D tests/isolate/src/APIv2_unresolvedPortsStandaloneNegativeTest.dart View 1 chunk +0 lines, -44 lines 0 comments Download
D tests/isolate/src/APIv2_unresolvedPortsStandaloneTest.dart View 1 chunk +0 lines, -50 lines 0 comments Download
A + tests/isolate/src/APIv2_unresolvedPortsTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -9 lines 0 comments Download
M tests/isolate/src/ConstructorTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -11 lines 0 comments Download
M tests/isolate/src/CountTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -27 lines 0 comments Download
M tests/isolate/src/CrossIsolateMessageTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -21 lines 0 comments Download
M tests/isolate/src/Isolate2NegativeTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -7 lines 0 comments Download
M tests/isolate/src/Isolate3NegativeTest.dart View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -12 lines 0 comments Download
M tests/isolate/src/IsolateComplexMessagesTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -18 lines 0 comments Download
M tests/isolate/src/IsolateNegativeTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -10 lines 0 comments Download
M tests/isolate/src/MandelIsolateTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -12 lines 0 comments Download
M tests/isolate/src/Message2Test.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -16 lines 0 comments Download
M tests/isolate/src/MessageTest.dart View 1 2 3 4 5 6 7 8 9 10 4 chunks +44 lines, -53 lines 0 comments Download
M tests/isolate/src/MintMakerTest.dart View 1 2 3 4 5 6 7 8 9 10 3 chunks +24 lines, -33 lines 0 comments Download
M tests/isolate/src/Mixed2Test.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -22 lines 0 comments Download
M tests/isolate/src/MixedTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -10 lines 0 comments Download
M tests/isolate/src/NestedSpawn2Test.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -16 lines 0 comments Download
M tests/isolate/src/NestedSpawnTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -10 lines 0 comments Download
M tests/isolate/src/PortTest.dart View 1 1 chunk +48 lines, -52 lines 0 comments Download
M tests/isolate/src/RequestReplyTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -19 lines 0 comments Download
M tests/isolate/src/SpawnTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -11 lines 0 comments Download
M tests/isolate/src/StaticStateTest.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -20 lines 0 comments Download
D tests/isolate/src/TestFramework.dart View 1 chunk +0 lines, -277 lines 0 comments Download
M tools/testing/dart/browser_test.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -36 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/10153005/diff/2001/samples/tests/samples/src/proxy/MintMakerRpcTest.dart File samples/tests/samples/src/proxy/MintMakerRpcTest.dart (right): https://chromiumcodereview.appspot.com/10153005/diff/2001/samples/tests/samples/src/proxy/MintMakerRpcTest.dart#newcode177 samples/tests/samples/src/proxy/MintMakerRpcTest.dart:177: // top-level port, and that port is resolved first. ...
8 years, 8 months ago (2012-04-20 00:58:23 UTC) #1
Bill Hesse
The test.dart changes look fine to me. http://codereview.chromium.org/10153005/diff/1/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): http://codereview.chromium.org/10153005/diff/1/tools/testing/dart/test_suite.dart#newcode542 tools/testing/dart/test_suite.dart:542: DartTestWrapper('$dartDir', dartLibraryFilename)); ...
8 years, 8 months ago (2012-04-20 08:49:46 UTC) #2
Emily Fortuna
lgtm https://chromiumcodereview.appspot.com/10153005/diff/2001/lib/unittest/unittest.dart File lib/unittest/unittest.dart (right): https://chromiumcodereview.appspot.com/10153005/diff/2001/lib/unittest/unittest.dart#newcode214 lib/unittest/unittest.dart:214: // TODO(sigmund): expose this functionality Comment obsolete now? ...
8 years, 8 months ago (2012-04-20 20:06:19 UTC) #3
Bob Nystrom
I'm not crazy about later0, et. al. and I'd like to talk about that some ...
8 years, 8 months ago (2012-04-20 22:31:36 UTC) #4
Siggi Cherem (dart-lang)
thanks for the comments https://chromiumcodereview.appspot.com/10153005/diff/2001/lib/unittest/html_print.dart File lib/unittest/html_print.dart (right): https://chromiumcodereview.appspot.com/10153005/diff/2001/lib/unittest/html_print.dart#newcode8 lib/unittest/html_print.dart:8: void _showResultsInPage(int passed, int failed, ...
8 years, 8 months ago (2012-04-21 00:03:43 UTC) #5
Siggi Cherem (dart-lang)
I updated a new version, assuming that my fix for bug 854 gets in (this ...
8 years, 8 months ago (2012-04-21 04:44:51 UTC) #6
Bob Nystrom
https://chromiumcodereview.appspot.com/10153005/diff/2001/lib/unittest/html_print.dart File lib/unittest/html_print.dart (right): https://chromiumcodereview.appspot.com/10153005/diff/2001/lib/unittest/html_print.dart#newcode8 lib/unittest/html_print.dart:8: void _showResultsInPage(int passed, int failed, int errors, On 2012/04/21 ...
8 years, 8 months ago (2012-04-23 17:34:07 UTC) #7
Siggi Cherem (dart-lang)
PTAL Once I fixed the bug in frog, I got things working, but they fail ...
8 years, 8 months ago (2012-04-25 01:03:52 UTC) #8
Bob Nystrom
Two nits but otherwise LGTM. https://chromiumcodereview.appspot.com/10153005/diff/29003/lib/unittest/unittest.dart File lib/unittest/unittest.dart (right): https://chromiumcodereview.appspot.com/10153005/diff/29003/lib/unittest/unittest.dart#newcode95 lib/unittest/unittest.dart:95: * features or fixes ...
8 years, 8 months ago (2012-04-25 18:21:17 UTC) #9
Siggi Cherem (dart-lang)
8 years, 8 months ago (2012-04-25 18:35:37 UTC) #10
https://chromiumcodereview.appspot.com/10153005/diff/29003/lib/unittest/unitt...
File lib/unittest/unittest.dart (right):

https://chromiumcodereview.appspot.com/10153005/diff/29003/lib/unittest/unitt...
lib/unittest/unittest.dart:378: } else {
On 2012/04/25 18:21:17, Bob Nystrom wrote:
> Remove the empty else clause.

Oops, thanks

https://chromiumcodereview.appspot.com/10153005/diff/29003/lib/unittest/unitt...
lib/unittest/unittest.dart:383: void notifyError(String msg, String trace) {
On 2012/04/25 18:21:17, Bob Nystrom wrote:
> Rename? See my previous comment.

sorry I forgot this one. Done.

Powered by Google App Engine
This is Rietveld 408576698