From 41e19db486c9b1f3aafd437c804a7ffcf52d9dad Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Fri, 6 Jan 2023 19:19:52 -0500 Subject: [PATCH] Add tests for active descendant a11y rule --- .../a11y-aria-activedescendant/input.svelte | 17 +++++++++++++++++ .../a11y-aria-activedescendant/warnings.json | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 test/validator/samples/a11y-aria-activedescendant/input.svelte create mode 100644 test/validator/samples/a11y-aria-activedescendant/warnings.json diff --git a/test/validator/samples/a11y-aria-activedescendant/input.svelte b/test/validator/samples/a11y-aria-activedescendant/input.svelte new file mode 100644 index 0000000000..22570e8c50 --- /dev/null +++ b/test/validator/samples/a11y-aria-activedescendant/input.svelte @@ -0,0 +1,17 @@ + + + + + + + + + + +
+
+
+ + +
+ diff --git a/test/validator/samples/a11y-aria-activedescendant/warnings.json b/test/validator/samples/a11y-aria-activedescendant/warnings.json new file mode 100644 index 0000000000..8749c1c125 --- /dev/null +++ b/test/validator/samples/a11y-aria-activedescendant/warnings.json @@ -0,0 +1,17 @@ +[ + { + "code": "a11y-aria-activedescendant-has-tabindex", + "end": { + "character": 568, + "column": 36, + "line": 16 + }, + "message": "A11y: Elements with attribute aria-activedescendant should have tabindex value", + "pos": 537, + "start": { + "character": 537, + "column": 5, + "line": 16 + } + } +]