From 8891b24095f4b7fe33032f1e9d6df23eb2dad398 Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Tue, 17 Nov 2020 23:54:43 +0100 Subject: [PATCH 1/3] Test that no load or error events fire for Test for whatwg/html#6122 --- html/links/icon/no-error-event.html | 17 +++++++++++++++++ html/links/icon/no-load-event.html | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 html/links/icon/no-error-event.html create mode 100644 html/links/icon/no-load-event.html diff --git a/html/links/icon/no-error-event.html b/html/links/icon/no-error-event.html new file mode 100644 index 00000000000000..fbf87d4f87a83d --- /dev/null +++ b/html/links/icon/no-error-event.html @@ -0,0 +1,17 @@ + + +<link rel="icon"> doesn't fire an error event + + + diff --git a/html/links/icon/no-load-event.html b/html/links/icon/no-load-event.html new file mode 100644 index 00000000000000..f81399a23093f7 --- /dev/null +++ b/html/links/icon/no-load-event.html @@ -0,0 +1,16 @@ + + +<link rel="icon"> doesn't fire a load event + + + From 24c0538e47cd77f97435381ba7df6aa3a76778b6 Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Wed, 18 Nov 2020 00:00:32 +0100 Subject: [PATCH 2/3] Fix lint error. --- .../links/icon/{no-error-event.html => no-error-event.sub.html} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename html/links/icon/{no-error-event.html => no-error-event.sub.html} (84%) diff --git a/html/links/icon/no-error-event.html b/html/links/icon/no-error-event.sub.html similarity index 84% rename from html/links/icon/no-error-event.html rename to html/links/icon/no-error-event.sub.html index fbf87d4f87a83d..91337081cd4c5e 100644 --- a/html/links/icon/no-error-event.html +++ b/html/links/icon/no-error-event.sub.html @@ -8,7 +8,7 @@ const link = document.createElement("link"); link.rel = "icon"; link.href = - "http://not.web-platform.test:8000/images/wpt-logo/wpt-logo-darkblue-bg.svg"; + "http://not.{{domains[]}}:{{ports[http][0]}}/images/wpt-logo/wpt-logo-darkblue-bg.svg"; link.addEventListener("error", t.unreached_func()); document.head.append(link); From 6c8a4d1c3b3cef278ad9dcaef1b27ac97bd2255f Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Wed, 18 Nov 2020 17:50:53 +0100 Subject: [PATCH 3/3] Use {{hosts[][nonexistent]}} --- html/links/icon/no-error-event.sub.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html/links/icon/no-error-event.sub.html b/html/links/icon/no-error-event.sub.html index 91337081cd4c5e..128b5d2d3c6830 100644 --- a/html/links/icon/no-error-event.sub.html +++ b/html/links/icon/no-error-event.sub.html @@ -7,8 +7,7 @@ async_test((t) => { const link = document.createElement("link"); link.rel = "icon"; - link.href = - "http://not.{{domains[]}}:{{ports[http][0]}}/images/wpt-logo/wpt-logo-darkblue-bg.svg"; + link.href = "http://{{hosts[][nonexistent]}}"; link.addEventListener("error", t.unreached_func()); document.head.append(link);