blob: 30c4172d7d7dc26f3f26e47490fdf73da0e1cab3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* __ *\
** ________ ___ / / ___ __ ____ Scala.js Test Suite **
** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ **
** /____/\___/_/ |_/____/_/ | |__/ /____/ **
** |/____/ **
\* */
package scala.scalajs.testsuite.noircheck
import org.scalajs.jasminetest.JasmineTest
object DummyParentsTest extends JasmineTest {
describe("Linking Stages") {
it("should provide dummy parents if required") {
import scala.concurrent.forkjoin._
// scala.concurrent.forkjoin.ForkJoinWorkerThread is not defined
class DummyFJWorkerThread extends ForkJoinWorkerThread(null) {
override def onStart(): Unit = { /* something */ }
}
val x = "1".toInt
if (x + x < 0) {
// Ensure DummyFuture is not DCEd, but never instantiated
new DummyFJWorkerThread()
}
}
}
}
|