From 366d278c68375b402adfcbd3b0eec2880c611e52 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:01:43 +0200 Subject: [PATCH] fix tests --- .../a11y-click-events-have-key-events/warnings.json | 12 ++++++------ .../a11y-no-static-element-interactions/input.svelte | 1 + .../warnings.json | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/test/validator/samples/a11y-click-events-have-key-events/warnings.json b/test/validator/samples/a11y-click-events-have-key-events/warnings.json index 973fbd8278..f508c12785 100644 --- a/test/validator/samples/a11y-click-events-have-key-events/warnings.json +++ b/test/validator/samples/a11y-click-events-have-key-events/warnings.json @@ -51,11 +51,11 @@ "code": "a11y-click-events-have-key-events", "message": "A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.", "start": { - "line": 21, + "line": 22, "column": 0 }, "end": { - "line": 21, + "line": 22, "column": 27 } }, @@ -63,11 +63,11 @@ "code": "a11y-click-events-have-key-events", "message": "A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.", "start": { - "line": 23, + "line": 24, "column": 0 }, "end": { - "line": 23, + "line": 24, "column": 26 } }, @@ -75,11 +75,11 @@ "code": "a11y-click-events-have-key-events", "message": "A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.", "start": { - "line": 24, + "line": 26, "column": 0 }, "end": { - "line": 24, + "line": 26, "column": 26 } } diff --git a/test/validator/samples/a11y-no-static-element-interactions/input.svelte b/test/validator/samples/a11y-no-static-element-interactions/input.svelte index 06a389d025..75c820bef3 100644 --- a/test/validator/samples/a11y-no-static-element-interactions/input.svelte +++ b/test/validator/samples/a11y-no-static-element-interactions/input.svelte @@ -10,6 +10,7 @@
{}} /> {}}>link
{}} /> +