mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
svg: Add mock SVGImageElement interface (#36975)
Add mock SVGImageElement interface to fix TIMEOUT WPT tests which are related to ImageBitmap (html/canvas/*). https://svgwg.org/svg2-draft/embedded.html#InterfaceSVGImageElement Rationality of this change to fire event "error" on any attempt to fetch image resource on href attribute change to not block WPT tests execution. Some WPT tests use the legacy namespace attribute "xlink:href", so support for it was added to source code. https://svgwg.org/svg2-draft/linking.html#XLinkHrefAttribute - setAttributeNS("http://www.w3.org/1999/xlink", 'xlink:href', src); Testing: Covered by existed WPT tests - fetch/metadata/generated/svg-image* - html/canvas/element/manual/* - html/dom/idlharness.https.html - html/semantics/embedded-content/the-canvas-element/* - html/webappapis/scripting/events/event-handler-all-global-events.html - mozilla/interfaces.https.html Fixes: https://github.com/servo/servo/issues/35881 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
parent
e4f62d5c16
commit
6468734aea
24 changed files with 262 additions and 811 deletions
228
tests/wpt/meta/html/dom/idlharness.https.html.ini
vendored
228
tests/wpt/meta/html/dom/idlharness.https.html.ini
vendored
|
@ -5123,231 +5123,6 @@
|
|||
[External interface: window.external must inherit property "IsSearchProviderInstalled()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onabort]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onauxclick]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onbeforeinput]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onbeforematch]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onbeforetoggle]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onblur]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncancel]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncanplay]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncanplaythrough]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onchange]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onclick]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onclose]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncontextlost]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncontextmenu]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncontextrestored]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncopy]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncuechange]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncut]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondblclick]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondrag]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondragend]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondragenter]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondragleave]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondragover]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondragstart]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondrop]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ondurationchange]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onemptied]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onended]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onerror]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onfocus]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onformdata]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oninput]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oninvalid]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onkeydown]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onkeypress]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onkeyup]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onload]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onloadeddata]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onloadedmetadata]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onloadstart]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onmousedown]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onmouseenter]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onmouseleave]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onmousemove]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onmouseout]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onmouseover]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onmouseup]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onpaste]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onpause]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onplay]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onplaying]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onprogress]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onratechange]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onreset]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onresize]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onscroll]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onscrollend]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onsecuritypolicyviolation]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onseeked]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onseeking]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onselect]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onslotchange]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onstalled]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onsubmit]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onsuspend]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ontimeupdate]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute ontoggle]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onvolumechange]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onwaiting]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onwebkitanimationend]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onwebkitanimationiteration]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onwebkitanimationstart]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onwebkittransitionend]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute onwheel]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute dataset]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -5444,9 +5219,6 @@
|
|||
[CommandEvent interface: attribute command]
|
||||
expected: FAIL
|
||||
|
||||
[SVGElement interface: attribute oncommand]
|
||||
expected: FAIL
|
||||
|
||||
[CanvasRenderingContext2D interface: attribute lang]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue