Commit 78e9a02
committed
Add Scala.js handling of @test annotations with arguments
Partial fix for lampepfl#7113
To be able to use the `expected` and `timeout` annotation arguments in
JUnit @test annotations, add handling for these arguments by supplying
them as arguments to the resolved constructor for the JUnit test class.
Enable the JUnitAnnotationsParamTest, which depends on this
functionality.1 parent d2db509 commit 78e9a02
File tree
2 files changed
+20
-6
lines changed- compiler/src/dotty/tools/backend/sjs
- project
2 files changed
+20
-6
lines changedLines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | 227 | | |
230 | | - | |
231 | | - | |
232 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
233 | 247 | | |
234 | 248 | | |
235 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
978 | | - | |
| 978 | + | |
979 | 979 | | |
980 | 980 | | |
981 | 981 | | |
| |||
0 commit comments