From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../commands/common/accesskey.js | 36 ++++++++++++++++++++++ .../legend/first-input-after-legend-manual.html | 10 ++++++ .../legend/first-input-before-legend-manual.html | 13 ++++++++ .../legend/first-input-inside-legend-manual.html | 12 ++++++++ .../commands/legend/focusable-legend-manual.html | 14 +++++++++ .../legend/focusable-legend-sibling-manual.html | 17 ++++++++++ .../legend/input-outside-fieldset-manual.html | 17 ++++++++++ .../commands/legend/label-sibling-manual.html | 18 +++++++++++ .../commands/legend/no-fieldset-parent-manual.html | 18 +++++++++++ 9 files changed, 155 insertions(+) create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/common/accesskey.js create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-after-legend-manual.html create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-before-legend-manual.html create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-inside-legend-manual.html create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/focusable-legend-manual.html create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/focusable-legend-sibling-manual.html create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/input-outside-fieldset-manual.html create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/label-sibling-manual.html create mode 100644 testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/no-fieldset-parent-manual.html (limited to 'testing/web-platform/tests/html/semantics/interactive-elements/commands') diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/common/accesskey.js b/testing/web-platform/tests/html/semantics/interactive-elements/commands/common/accesskey.js new file mode 100644 index 0000000000..f08761be8c --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/common/accesskey.js @@ -0,0 +1,36 @@ +setup({explicit_done: true, explicit_timeout: true}); + +const NOTRUN = 3; +let status = NOTRUN; +function notrun() { + return status === NOTRUN; +} +add_completion_callback(tests => { + status = tests[0].status; +}); + +function pass() { + // Wait a couple of frames in case fail() is also called. + requestAnimationFrame(() => { + requestAnimationFrame(() => { + if (notrun()) { + test(() => {}); + done(); + } + }); + }); +} + +function fail(msg) { + if (notrun()) { + test(() => { assert_unreached(msg); }); + done(); + } +} + +document.addEventListener('DOMContentLoaded', () => { + const accessKeyElement = document.querySelector('[accesskey]'); + if (accessKeyElement.accessKeyLabel) { + document.querySelector('kbd').textContent = accessKeyElement.accessKeyLabel; + } +}); diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-after-legend-manual.html b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-after-legend-manual.html new file mode 100644 index 0000000000..521b4bb975 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-after-legend-manual.html @@ -0,0 +1,10 @@ + +First input after the legend + + + +

Press the access key combination for "a".

+
+ legend + +
diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-before-legend-manual.html b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-before-legend-manual.html new file mode 100644 index 0000000000..1c40cc7b81 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-before-legend-manual.html @@ -0,0 +1,13 @@ + +First input before the legend + + + +

Press the access key combination for "a".

+
+ + legend + + + +
diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-inside-legend-manual.html b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-inside-legend-manual.html new file mode 100644 index 0000000000..abd3a3b2df --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/first-input-inside-legend-manual.html @@ -0,0 +1,12 @@ + +First input inside the legend + + + +

Press the access key combination for "a".

+
+ legend + + + +
diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/focusable-legend-manual.html b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/focusable-legend-manual.html new file mode 100644 index 0000000000..e2880a77bf --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/focusable-legend-manual.html @@ -0,0 +1,14 @@ + +Focusable legend + + + +

Press the access key combination for "a".

+
+ + legend + + + +
diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/focusable-legend-sibling-manual.html b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/focusable-legend-sibling-manual.html new file mode 100644 index 0000000000..49dcaaf7d5 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/focusable-legend-sibling-manual.html @@ -0,0 +1,17 @@ + +Focusable legend sibling + + + +

Press the access key combination for "a".

+
+ first legend + second legend +
+ diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/input-outside-fieldset-manual.html b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/input-outside-fieldset-manual.html new file mode 100644 index 0000000000..dc6af48323 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/input-outside-fieldset-manual.html @@ -0,0 +1,17 @@ + +Input outside fieldset + + + +

Press the access key combination for "a".

+
+ legend +
+ + diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/label-sibling-manual.html b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/label-sibling-manual.html new file mode 100644 index 0000000000..8a7b20565f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/label-sibling-manual.html @@ -0,0 +1,18 @@ + +Label sibling + + + +

Press the access key combination for "a".

+ +
+ legend + +
+ diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/no-fieldset-parent-manual.html b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/no-fieldset-parent-manual.html new file mode 100644 index 0000000000..e7abb71454 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/commands/legend/no-fieldset-parent-manual.html @@ -0,0 +1,18 @@ + +No fieldset parent + + + +

Press the access key combination for "a".

+ + legend + + + + -- cgit v1.2.3