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
2121
2222trait 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()
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import scala.scalajs.js.typedarray._
1010
1111trait 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 }
You can’t perform that action at this time.
0 commit comments