mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
canvas: Implement line dash setters and getters (#36257)
Implement `setLineDash`, `getLineDash`, and `lineDashOffset` from `CanvasPathDrawingStyles` mixin, according to the spec https://html.spec.whatwg.org/multipage/canvas.html#canvaspathdrawingstyles. Testing: Existing WPT. --------- Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>
This commit is contained in:
parent
bc6926d1fe
commit
a77592e281
21 changed files with 144 additions and 92 deletions
|
@ -1,7 +0,0 @@
|
|||
[setLineDash.html]
|
||||
[Invalid arguments to setLineDash()]
|
||||
expected: FAIL
|
||||
|
||||
[setLineDash]
|
||||
expected: FAIL
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[2d.reset.render.line.html]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.reset.state.line_dash.html]
|
||||
[check that the line dash is reset]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.reset.state.line_dash_offset.html]
|
||||
[check that the state is reset]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[2d.reset.render.line.html]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.reset.state.line_dash.html]
|
||||
[check that the line dash is reset]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.reset.state.line_dash.worker.html]
|
||||
[check that the line dash is reset]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.reset.state.line_dash_offset.html]
|
||||
[check that the state is reset]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.reset.state.line_dash_offset.worker.html]
|
||||
[check that the state is reset]
|
||||
expected: FAIL
|
|
@ -71,15 +71,6 @@
|
|||
[OffscreenCanvasRenderingContext2D interface: operation strokeText(DOMString, unrestricted double, unrestricted double, optional unrestricted double)]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvasRenderingContext2D interface: operation setLineDash(sequence<unrestricted double>)]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvasRenderingContext2D interface: operation getLineDash()]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvasRenderingContext2D interface: attribute lineDashOffset]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvasRenderingContext2D interface: attribute letterSpacing]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -146,9 +146,6 @@
|
|||
[OffscreenCanvasRenderingContext2D interface: operation commit()]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: operation setLineDash(sequence<unrestricted double>)]
|
||||
expected: FAIL
|
||||
|
||||
[DataTransferItemList interface object name]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -4613,15 +4610,6 @@
|
|||
[CanvasRenderingContext2D interface: operation strokeText(DOMString, unrestricted double, unrestricted double, optional unrestricted double)]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: operation setLineDash(sequence<unrestricted double>)]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: operation getLineDash()]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: attribute lineDashOffset]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: attribute letterSpacing]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -4691,18 +4679,6 @@
|
|||
[CanvasRenderingContext2D interface: calling strokeText(DOMString, unrestricted double, unrestricted double, optional unrestricted double) on document.createElement("canvas").getContext("2d") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "setLineDash(sequence<unrestricted double>)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: calling setLineDash(sequence<unrestricted double>) on document.createElement("canvas").getContext("2d") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "getLineDash()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "lineDashOffset" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "letterSpacing" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -4802,15 +4778,6 @@
|
|||
[OffscreenCanvasRenderingContext2D interface: operation strokeText(DOMString, unrestricted double, unrestricted double, optional unrestricted double)]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvasRenderingContext2D interface: operation setLineDash(sequence<unrestricted double>)]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvasRenderingContext2D interface: operation getLineDash()]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvasRenderingContext2D interface: attribute lineDashOffset]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvasRenderingContext2D interface: attribute letterSpacing]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
[sequence-conversion.html]
|
||||
[An array]
|
||||
expected: FAIL
|
||||
|
||||
[A generator]
|
||||
expected: FAIL
|
||||
|
||||
[An array with an overridden Symbol.iterator]
|
||||
expected: FAIL
|
||||
|
||||
[An array with an overridden Symbol.iterator on the prototype]
|
||||
expected: FAIL
|
||||
|
||||
[An array with an overridden %ArrayIterator%.prototype.next]
|
||||
expected: FAIL
|
||||
|
||||
[A holey array with fallback to an accessor on the prototype]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue