Commit 99e5332
committed
Improve assertions in BrowserFunction registration test #3254
The test case
test_BrowserFunction_availableOnLoad_concurrentInstances_issue20
currently only asserts that the two involved progress listeners were
successfully executed. In case of a failure, there is not information
about which of the listeners was not executed. In addition, the
listeners may even fail to execute with an exception, but that exception
is currently swallowed.
With this change, exceptions are properly propagated to test failures
and in case a listener is not executed at all, the error message will
report for which of them that is the case.
Contributes to
#32541 parent 4f38a5e commit 99e5332
1 file changed
Lines changed: 19 additions & 6 deletions
File tree
- tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3002 | 3002 | | |
3003 | 3003 | | |
3004 | 3004 | | |
| 3005 | + | |
3005 | 3006 | | |
3006 | 3007 | | |
3007 | 3008 | | |
3008 | 3009 | | |
3009 | | - | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
3010 | 3013 | | |
3011 | 3014 | | |
3012 | 3015 | | |
| |||
3017 | 3020 | | |
3018 | 3021 | | |
3019 | 3022 | | |
| 3023 | + | |
3020 | 3024 | | |
3021 | 3025 | | |
3022 | 3026 | | |
3023 | 3027 | | |
3024 | | - | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
3025 | 3031 | | |
3026 | 3032 | | |
3027 | 3033 | | |
3028 | 3034 | | |
3029 | | - | |
3030 | | - | |
3031 | | - | |
3032 | | - | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
3033 | 3046 | | |
3034 | 3047 | | |
3035 | 3048 | | |
| |||
0 commit comments