| Index: pkg/unittest/test/unittest_test.dart
|
| ===================================================================
|
| --- pkg/unittest/test/unittest_test.dart (revision 18401)
|
| +++ pkg/unittest/test/unittest_test.dart (working copy)
|
| @@ -78,10 +78,6 @@
|
| }
|
| }
|
|
|
| -foo() {
|
| - ++_testconfig.count;
|
| -}
|
| -
|
| runTest() {
|
| port.receive((testName, sendport) {
|
| configure(_testconfig = new TestConfiguration(sendport));
|
| @@ -117,9 +113,9 @@
|
| } else if (testName == 'correct callback test') {
|
| test(testName,
|
| () =>_defer(expectAsync0((){ ++_testconfig.count;})));
|
| - } else if (testName == 'excess callback test with callback name') {
|
| + } else if (testName == 'excess callback test') {
|
| test(testName, () {
|
| - var _callback = expectAsync0(foo);
|
| + var _callback = expectAsync0(() => ++_testconfig.count);
|
| _defer(_callback);
|
| _defer(_callback);
|
| });
|
| @@ -266,7 +262,7 @@
|
| 'teardown test',
|
| 'setup and teardown test',
|
| 'correct callback test',
|
| - 'excess callback test with callback name',
|
| + 'excess callback test',
|
| 'completion test',
|
| 'async exception test',
|
| 'late exception test',
|
| @@ -287,7 +283,7 @@
|
| setup: 'setup', teardown: 'teardown'),
|
| buildStatusString(1, 0, 0, tests[7], count: 1),
|
| buildStatusString(0, 0, 1, tests[8], count: 1,
|
| - message: 'Callback foo called more times than expected (2 > 1).'),
|
| + message: 'Callback called more times than expected (2 > 1).'),
|
| buildStatusString(1, 0, 0, tests[9], count: 10),
|
| buildStatusString(0, 1, 0, tests[10], message: 'Caught error!'),
|
| buildStatusString(1, 0, 1, 'testOne',
|
|
|