Bug 1881754 - refactor some SVG web platform tests r=emilio CLOSED TREE

- SVGAnimateColorElement is deprecated and should be removed where possible
- SVGDiscardElement needs to be included correctly
- svg/rendering is the correct directory per the SVG 2 specification and not svg/render
- Move a styling test to the styling directory

Differential Revision: https://phabricator.services.mozilla.com/D202593
This commit is contained in:
Robert Longson 2024-02-23 21:14:10 +00:00
Родитель 93dd02bbe9
Коммит 5319ac8b89
11 изменённых файлов: 63 добавлений и 8 удалений

Просмотреть файл

@ -1,6 +1,5 @@
[idlharness.window.html]
prefs: [svg.SVGAElement.text.enabled:true]
[SVGElement interface: attribute correspondingElement]
expected: FAIL
@ -441,3 +440,60 @@
[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

Просмотреть файл

@ -29,9 +29,8 @@
} else {
const namespaceURI = "http://www.w3.org/2000/svg";
scriptElement = document.createElementNS(namespaceURI, "script");
// Use setAttribute as SVGURIReference's href property is read-only
// and SVGScriptElement has no fetchPriority property.
scriptElement.setAttribute("href", data.src);
scriptElement.href.baseVal = data.src;
// Use setAttribute as SVGScriptElement has no fetchPriority property.
if ("fetchPriority" in data) {
scriptElement.setAttribute("fetchPriority", data.fetchPriority);
}

Просмотреть файл

@ -30,8 +30,8 @@
} else {
const namespaceURI = "http://www.w3.org/2000/svg";
scriptElement = document.createElementNS(namespaceURI, "script");
// Use setAttribute as SVGURIReference's href property is read-only
// and SVGScriptElement has no fetchPriority property.
scriptElement.href.baseVal = data.src;
// Use setAttribute as SVGScriptElement has no fetchPriority property.
scriptElement.setAttribute("href", data.src);
if ("fetchPriority" in data) {
scriptElement.setAttribute("fetchPriority", data.fetchPriority);

Просмотреть файл

@ -42,9 +42,9 @@ const elements = [
'script',
'animate',
'set',
'discard',
'animateMotion',
'mpath',
'animateColor',
'animateTransform',
'metadata',
'foreignObject',
@ -167,10 +167,10 @@ idl_test(
SVGViewElement: ['objects.view'],
SVGScriptElement: ['objects.script'],
SVGAnimateElement: ['objects.animate'],
SVGDiscardElement: ['objects.discard'],
SVGSetElement: ['objects.set'],
SVGAnimateMotionElement: ['objects.animateMotion'],
SVGMPathElement: ['objects.mpath'],
SVGAnimateColorElement: ['objects.animateColor'],
SVGAnimateTransformElement: ['objects.animateTransform'],
SVGMetadataElement: ['objects.metadata'],
SVGForeignObjectElement: ['objects.foreignObject'],

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 257 B

После

Ширина:  |  Высота:  |  Размер: 257 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 1.2 KiB

После

Ширина:  |  Высота:  |  Размер: 1.2 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 375 B

После

Ширина:  |  Высота:  |  Размер: 375 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 670 B

После

Ширина:  |  Высота:  |  Размер: 670 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 127 B

После

Ширина:  |  Высота:  |  Размер: 127 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 537 B

После

Ширина:  |  Высота:  |  Размер: 537 B