File tree 1 file changed +10
-1
lines changed
tests-shared/src/main/scala/org/scalajs/dom/tests/shared
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,18 @@ package org.scalajs.dom.tests.shared
2
2
3
3
import java .util .UUID
4
4
import org .junit .Test
5
- import org .scalajs .dom ._
6
5
7
6
trait SharedTests {
8
7
import SharedTests ._
9
8
9
+ // This tests that ops are always implicitly available, no imports required
10
+ @ Test final def NodeListOpsTest (): Unit = {
11
+ val _ = org.scalajs.dom.document.body.childNodes.mkString
12
+ }
13
+
14
+ // Don't move up
15
+ import org .scalajs .dom ._
16
+
10
17
// https://github.com/scala-js/scala-js-dom/issues/411 - console doesn't work in web workers
11
18
@ Test final def ConsoleLogTest (): Unit =
12
19
console.log(" Testing console.log" )
@@ -22,6 +29,8 @@ trait SharedTests {
22
29
}
23
30
24
31
object SharedTests {
32
+ import org .scalajs .dom ._
33
+
25
34
def testIdb (idb : IDBFactory ): Unit = {
26
35
val open = idb.open(UUID .randomUUID().toString())
27
36
open.onerror = (e : Event ) => sys.error(" idb open failed: " + e)
You can’t perform that action at this time.
0 commit comments