diff --git a/svg/struct/reftests/support/red-rect.svg b/svg/struct/reftests/support/red-rect.svg new file mode 100644 index 00000000000000..1ee578ab6adba8 --- /dev/null +++ b/svg/struct/reftests/support/red-rect.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/struct/reftests/use-cross-origin.svg b/svg/struct/reftests/use-cross-origin.svg new file mode 100644 index 00000000000000..3de069c8d15c7a --- /dev/null +++ b/svg/struct/reftests/use-cross-origin.svg @@ -0,0 +1,12 @@ + + <use> with a cross-origin resource + + + + + diff --git a/svg/struct/reftests/use-data-url.tentative.svg b/svg/struct/reftests/use-data-url.tentative.svg new file mode 100644 index 00000000000000..04414030a3e65e --- /dev/null +++ b/svg/struct/reftests/use-data-url.tentative.svg @@ -0,0 +1,7 @@ + + <use> with a data: URL resource + + + + + diff --git a/svg/struct/reftests/use-same-origin.svg b/svg/struct/reftests/use-same-origin.svg new file mode 100644 index 00000000000000..0aa1ec83afd68b --- /dev/null +++ b/svg/struct/reftests/use-same-origin.svg @@ -0,0 +1,6 @@ + + <use> with a same-origin resource + + + + diff --git a/svg/struct/scripted/use-load-error-events.tentative.html b/svg/struct/scripted/use-load-error-events.tentative.html index 9cbaa0e22011a6..2c52072e169065 100644 --- a/svg/struct/scripted/use-load-error-events.tentative.html +++ b/svg/struct/scripted/use-load-error-events.tentative.html @@ -72,7 +72,7 @@ promise_test(t => { const svg = document.querySelector('svg'); const use = newUseElement(); - const watcher = expectEvents(t, use, ['load']); + const watcher = expectEvents(t, use, ['error']); const url = getUrl('existing-data'); svg.appendChild(use).setAttribute('href', url); return watcher; @@ -113,7 +113,7 @@ const url = getUrl('existing-data'); svg.appendChild(use).setAttribute('href', url); t.step_timeout(() => use.setAttribute('href', '#local')); - return makeWatcher(svg, 'load', url); + return makeWatcher(svg, 'error', url); }, document.title + ', external data: URL reference, existing, changed to local reference while loading'); promise_test(t => {