Skip to content

Commit 390faff

Browse files
committed
Relocate test
1 parent 54932de commit 390faff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests-shared/src/main/scala/org/scalajs/dom/tests/shared/BrowserTests.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ import scala.util.Try
2121

2222
trait BrowserTests extends WebCryptoApiTests {
2323

24-
// https://github.com/scala-js/scala-js-dom/issues/668
25-
@Test final def cryptoGetRandomValues(): Unit =
26-
dom.crypto.getRandomValues(new Uint8Array(1))
27-
2824
def read[T](reader: ReadableStreamReader[T])(values: Seq[T]): Future[Seq[T]] = {
2925
reader
3026
.read()

tests-shared/src/main/scala/org/scalajs/dom/tests/shared/WebCryptoApiTests.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import scala.scalajs.js.typedarray._
1010

1111
trait WebCryptoApiTests {
1212

13+
// https://github.com/scala-js/scala-js-dom/issues/668
14+
@Test final def cryptoGetRandomValues(): Unit =
15+
dom.crypto.getRandomValues(new Uint8Array(1))
16+
1317
@Test final def getRandomValuesWork: Unit = {
1418
dom.webcrypto.getRandomValues(Array.ofDim[Byte](8).toTypedArray)
1519
}

0 commit comments

Comments
 (0)