We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e48cc27 commit 50b673bCopy full SHA for 50b673b
tests-shared/src/main/scala/org/scalajs/dom/tests/shared/BrowserTests.scala
@@ -128,4 +128,14 @@ trait BrowserTests extends WebCryptoApiTests {
128
_ <- reasonPromise.future.map(assertEquals(expectedReason, _))
129
} yield ()
130
}
131
+
132
+ @Test
133
+ final def ImageDataTest(): Unit = {
134
+ import org.scalajs.dom.{ImageData, ImageDataSettings, PredefinedColorSpace}
135
+ import PredefinedColorSpace._
136
137
+ val defaultImageData: ImageData = new ImageData(200, 100, new ImageDataSettings { colorSpace = `display-p3` })
138
+ assertEquals(defaultImageData.width, 200)
139
+ assertEquals(defaultImageData.height, 100)
140
+ }
141
0 commit comments