File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
tests-shared/src/main/scala/org/scalajs/dom/tests/shared Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,15 @@ trait SharedTests {
7
7
import SharedTests ._
8
8
9
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
10
+ @ Test final def NodeListOpsTest (): Unit =
11
+ 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)
12
19
}
13
20
14
21
// Don't move up
You can’t perform that action at this time.
0 commit comments