File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests-shared/src/main/scala/org/scalajs/dom/tests/shared Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ import scala.util.Try
21
21
22
22
trait BrowserTests extends WebCryptoApiTests {
23
23
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
-
28
24
def read [T ](reader : ReadableStreamReader [T ])(values : Seq [T ]): Future [Seq [T ]] = {
29
25
reader
30
26
.read()
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import scala.scalajs.js.typedarray._
10
10
11
11
trait WebCryptoApiTests {
12
12
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
+
13
17
@ Test final def getRandomValuesWork : Unit = {
14
18
dom.webcrypto.getRandomValues(Array .ofDim[Byte ](8 ).toTypedArray)
15
19
}
You can’t perform that action at this time.
0 commit comments