File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
tests-shared/src/main/scala/org/scalajs/dom/tests/shared Expand file tree Collapse file tree 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
22
33import java .util .UUID
44import org .junit .Test
5- import org .scalajs .dom ._
65
76trait SharedTests {
87 import SharedTests ._
98
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+
1017 // https://github.com/scala-js/scala-js-dom/issues/411 - console doesn't work in web workers
1118 @ Test final def ConsoleLogTest (): Unit =
1219 console.log(" Testing console.log" )
@@ -22,6 +29,8 @@ trait SharedTests {
2229}
2330
2431object SharedTests {
32+ import org .scalajs .dom ._
33+
2534 def testIdb (idb : IDBFactory ): Unit = {
2635 val open = idb.open(UUID .randomUUID().toString())
2736 open.onerror = (e : Event ) => sys.error(" idb open failed: " + e)
You can’t perform that action at this time.
0 commit comments