We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a8a26 commit bb750c6Copy full SHA for bb750c6
tests-shared/src/main/scala/org/scalajs/dom/tests/shared/SharedTests.scala
@@ -7,8 +7,15 @@ trait SharedTests {
7
import SharedTests._
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
+ @Test final def NodeListOpsTest(): Unit =
+ org.scalajs.dom.document.body.childNodes.mkString
12
+
13
+ // This tests that ops are always implicitly available, no imports required
14
+ @Test final def DOMTokenListOpsTest(): Unit = {
15
+ org.scalajs.dom.document.querySelectorAll("*")
16
+ .iterator
17
+ .collect { case e: org.scalajs.dom.html.Element => e }
18
+ .map(_.classList.mkString)
19
}
20
21
// Don't move up
0 commit comments