| Index: dart/pkg/unittest/test_controller.js
|
| diff --git a/dart/pkg/unittest/test_controller.js b/dart/pkg/unittest/test_controller.js
|
| index 6b6153c0f15b08450ddbab050cb506b6a310b80a..3698b3e95588b79e7b0c289939c5829ff1ba6a40 100644
|
| --- a/dart/pkg/unittest/test_controller.js
|
| +++ b/dart/pkg/unittest/test_controller.js
|
| @@ -113,6 +113,10 @@ function dartMainRunner(main) {
|
| main();
|
| } catch (e) {
|
| showErrorAndExit(String(e));
|
| + // Calling showErrorAndExit will not call testRunner.notifyDone()
|
| + // at this point. This is because of the async nature of this framework.
|
| + // testRunner.startedDartTest is not true yet. So post a message.
|
| + window.postMessage('unittest-suite-fail', '*');
|
| return; // Posting 'dart-main-done' signals success.
|
| }
|
| window.postMessage('dart-main-done', '*');
|
|
|