Bug 1964242: Remove WPT tests for <discard> element. r=longsonr

The discard element was removed from the SVG spec in
https://github.com/w3c/svgwg/pull/973 and we have a WPT test at
svg/animations/historical.html to verify that it's not recognized.

This patch here removes some older subtests that expect it to be supported.

Differential Revision: https://phabricator.services.mozilla.com/D247807
This commit is contained in:
Daniel Holbert
2025-05-06 22:36:50 +00:00
committed by dholbert@mozilla.com
parent 123bc5b115
commit 5ee0ea2cba
5 changed files with 1 additions and 85 deletions

View File

@@ -416,78 +416,3 @@
[SVGElement interface: objects.animateTransform must inherit property "correspondingUseElement" with the proper type]
expected: FAIL
[SVGDiscardElement interface: existence and properties of interface object]
expected: FAIL
[SVGDiscardElement interface object length]
expected: FAIL
[SVGDiscardElement interface object name]
expected: FAIL
[SVGDiscardElement interface: existence and properties of interface prototype object]
expected: FAIL
[SVGDiscardElement interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[SVGDiscardElement interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[SVGDiscardElement must be primary interface of objects.discard]
expected: FAIL
[Stringification of objects.discard]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "targetElement" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "onbegin" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "onend" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "onrepeat" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "getStartTime()" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "getCurrentTime()" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "getSimpleDuration()" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "beginElement()" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "beginElementAt(float)" with the proper type]
expected: FAIL
[SVGAnimationElement interface: calling beginElementAt(float) on objects.discard with too few arguments must throw TypeError]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "endElement()" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "endElementAt(float)" with the proper type]
expected: FAIL
[SVGAnimationElement interface: calling endElementAt(float) on objects.discard with too few arguments must throw TypeError]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "requiredExtensions" with the proper type]
expected: FAIL
[SVGAnimationElement interface: objects.discard must inherit property "systemLanguage" with the proper type]
expected: FAIL
[SVGElement interface: objects.discard must inherit property "correspondingElement" with the proper type]
expected: FAIL
[SVGElement interface: objects.discard must inherit property "correspondingUseElement" with the proper type]
expected: FAIL

View File

@@ -7,6 +7,3 @@
[x, y, width, and height presentation attributes supported on use element]
expected: FAIL
[fill presentation attribute not supported on discard]
expected: FAIL

View File

@@ -55,10 +55,6 @@ SVGMPathElement includes SVGURIReference;
interface SVGAnimateTransformElement : SVGAnimationElement {
};
[Exposed=Window]
interface SVGDiscardElement : SVGAnimationElement {
};
partial interface SVGSVGElement {
undefined pauseAnimations();
undefined unpauseAnimations();

View File

@@ -42,7 +42,6 @@ const elements = [
'script',
'animate',
'set',
'discard',
'animateMotion',
'mpath',
'animateTransform',
@@ -167,7 +166,6 @@ idl_test(
SVGViewElement: ['objects.view'],
SVGScriptElement: ['objects.script'],
SVGAnimateElement: ['objects.animate'],
SVGDiscardElement: ['objects.discard'],
SVGSetElement: ['objects.set'],
SVGAnimateMotionElement: ['objects.animateMotion'],
SVGMPathElement: ['objects.mpath'],

View File

@@ -98,7 +98,7 @@ if (CSS.supports("d", "initial")) {
// animation elements.
if (CSS.supports("fill", "initial")) {
for (let e of ["animate", "animateMotion", "animateTransform", "discard", "set"]) {
for (let e of ["animate", "animateMotion", "animateTransform", "set"]) {
test(function() {
assertPresentationAttributeIsNotSupported(e, "fill", "blue", "fill");
}, `fill presentation attribute not supported on ${e}`);