Implement HTMLCanvasElement#toDataURL

This commit is contained in:
David Zbarsky 2015-10-25 15:20:34 -07:00
parent e49c7a3acb
commit a63c98c24a
31 changed files with 49 additions and 131 deletions

View file

@ -1,5 +0,0 @@
[2d.transformation.scale.zero.html]
type: testharness
[scale() with a scale factor of zero works]
expected: FAIL

View file

@ -2,7 +2,6 @@
type: testharness
disabled:
if os == "mac": https://github.com/servo/servo/issues/8157
[XMLHttpRequest: send() - Document]
expected: FAIL

View file

@ -6042,9 +6042,6 @@
[HTMLCanvasElement interface: operation transferControlToProxy()]
expected: FAIL
[HTMLCanvasElement interface: operation toDataURL(DOMString,any)]
expected: FAIL
[HTMLCanvasElement interface: operation toBlob(FileCallback,DOMString,any)]
expected: FAIL
@ -6063,12 +6060,6 @@
[HTMLCanvasElement interface: document.createElement("canvas") must inherit property "transferControlToProxy" with the proper type (5)]
expected: FAIL
[HTMLCanvasElement interface: document.createElement("canvas") must inherit property "toDataURL" with the proper type (6)]
expected: FAIL
[HTMLCanvasElement interface: calling toDataURL(DOMString,any) on document.createElement("canvas") with too few arguments must throw TypeError]
expected: FAIL
[HTMLCanvasElement interface: document.createElement("canvas") must inherit property "toBlob" with the proper type (7)]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.dataURI.html]
type: testharness
[data: URIs do not count as different-origin, and do not taint the canvas]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.canvas.timing.sub.html]
type: testharness
[Pattern safety depends on whether the source was origin-clean, not on whether it still is clean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[security.pattern.create.sub.html]
type: testharness
[Creating an unclean pattern does not make the canvas origin-unclean]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.arguments.1.html]
type: testharness
[toDataURL ignores extra arguments]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.arguments.2.html]
type: testharness
[toDataURL ignores extra arguments]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.arguments.3.html]
type: testharness
[toDataURL ignores extra arguments]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.bogustype.html]
type: testharness
[toDataURL with a syntactically invalid type returns a PNG]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.default.html]
type: testharness
[toDataURL with no arguments returns a PNG]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.jpeg.alpha.html]
type: testharness
[toDataURL with JPEG composites onto black]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.jpeg.primarycolours.html]
type: testharness
[toDataURL with JPEG handles simple colours correctly]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.jpeg.quality.basic.html]
type: testharness
[toDataURL with JPEG uses the quality parameter]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.jpeg.quality.notnumber.html]
type: testharness
[toDataURL with JPEG handles non-numeric quality parameters]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.jpeg.quality.outsiderange.html]
type: testharness
[toDataURL with JPEG handles out-of-range quality parameters]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.jpg.html]
type: testharness
[toDataURL with image/jpg is invalid type hence returns a PNG]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.lowercase.ascii.html]
type: testharness
[toDataURL type is case-insensitive]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.lowercase.unicode.html]
type: testharness
[toDataURL type is ASCII-case-insensitive]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.png.complexcolours.html]
type: testharness
[toDataURL with PNG handles non-primary and non-solid colours correctly]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.png.html]
type: testharness
[toDataURL with image/png returns a PNG]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.png.primarycolours.html]
type: testharness
[toDataURL with PNG handles simple colours correctly]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.unrecognised.html]
type: testharness
[toDataURL with an unhandled type returns a PNG]
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.zeroheight.html]
type: testharness
[toDataURL on zero-size canvas returns 'data:,']
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.zerosize.html]
type: testharness
[toDataURL on zero-size canvas returns 'data:,']
expected: FAIL

View file

@ -1,5 +0,0 @@
[toDataURL.zerowidth.html]
type: testharness
[toDataURL on zero-size canvas returns 'data:,']
expected: FAIL