summaryrefslogtreecommitdiff
path: root/packages/webapi/test/imagedata.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/webapi/test/imagedata.js')
-rw-r--r--packages/webapi/test/imagedata.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/webapi/test/imagedata.js b/packages/webapi/test/imagedata.js
index d4a542117..7f35eddd7 100644
--- a/packages/webapi/test/imagedata.js
+++ b/packages/webapi/test/imagedata.js
@@ -7,9 +7,9 @@ test(() => {
name: 'Supports ImageData',
test() {
const target = {}
-
+
polyfill(target)
-
+
assert.equal('ImageData' in target, true)
assert.equal(typeof target['ImageData'], 'function')
},
@@ -18,7 +18,7 @@ test(() => {
name: 'Supports new (data: Uint8ClampedArray, width: number, height: number): ImageData',
test() {
const target = {}
-
+
polyfill(target)
const w = 640
@@ -36,7 +36,7 @@ test(() => {
name: 'Supports new (data: Uint8ClampedArray, width: number): ImageData',
test() {
const target = {}
-
+
polyfill(target)
const w = 640
@@ -54,7 +54,7 @@ test(() => {
name: 'Supports new (width: number, height: number): ImageData',
test() {
const target = {}
-
+
polyfill(target)
const w = 640
@@ -71,7 +71,7 @@ test(() => {
name: 'Supports Object.keys(new ImageData(640, 480))',
test() {
const target = {}
-
+
polyfill(target)
const keys = Object.keys(new target.ImageData(640, 480))