summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-speech/speak-as
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-speech/speak-as
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-speech/speak-as')
-rw-r--r--testing/web-platform/tests/css/css-speech/speak-as/speak-as-digits-001-manual.html36
-rw-r--r--testing/web-platform/tests/css/css-speech/speak-as/speak-as-digits-002-manual.html36
-rw-r--r--testing/web-platform/tests/css/css-speech/speak-as/speak-as-literal-punctuation-001-manual.html40
-rw-r--r--testing/web-platform/tests/css/css-speech/speak-as/speak-as-spell-out-001-manual.html36
4 files changed, 148 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-speech/speak-as/speak-as-digits-001-manual.html b/testing/web-platform/tests/css/css-speech/speak-as/speak-as-digits-001-manual.html
new file mode 100644
index 0000000000..afbc0c94a1
--- /dev/null
+++ b/testing/web-platform/tests/css/css-speech/speak-as/speak-as-digits-001-manual.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS Test: speak-as digits</title>
+ <link rel="author" title="Alexander Lehner" href="mailto:alexlehner86@gmail.com">
+ <link rel="help" href="https://www.w3.org/TR/css-speech-1/#speaking-props-speak-as">
+ <meta
+ name="flags"
+ content="speech"
+ >
+ <meta
+ name="assert"
+ content="The digits value of speak-as makes screen readers read a number one digit at a time."
+ >
+ <style>
+ p.speak-as-digits { speak-as: digits; }
+ </style>
+ </head>
+ <body>
+ <h1>Test Case</h1>
+ <p>
+ The following telephone number should be read one digit at a time:
+ </p>
+ <p class="speak-as-digits">01 55 40 3005</p>
+ <h2>Instructions for Manual Test</h2>
+ <ol>
+ <li>Open the website in your browser.</li>
+ <li>
+ Activate your screen reader (NVDA, VoiceOver, TalkBack etc.) and, in browse mode, navigate to the paragraph following the first heading.
+ </li>
+ <li>
+ The screen reader should read the telephone number one digit at a time: zero one five five four zero three zero zero five
+ </li>
+ </ol>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/css-speech/speak-as/speak-as-digits-002-manual.html b/testing/web-platform/tests/css/css-speech/speak-as/speak-as-digits-002-manual.html
new file mode 100644
index 0000000000..84ac15687c
--- /dev/null
+++ b/testing/web-platform/tests/css/css-speech/speak-as/speak-as-digits-002-manual.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS Test: speak-as digits</title>
+ <link rel="author" title="Alexander Lehner" href="mailto:alexlehner86@gmail.com">
+ <link rel="help" href="https://www.w3.org/TR/css-speech-1/#speaking-props-speak-as">
+ <meta
+ name="flags"
+ content="speech"
+ >
+ <meta
+ name="assert"
+ content="The digits value of speak-as makes screen readers read a number one digit at a time."
+ >
+ <style>
+ p.speak-as-digits { speak-as: digits; }
+ </style>
+ </head>
+ <body>
+ <h1>Test Case</h1>
+ <p>
+ The following bank account number (IBAN) should be read one digit at a time:
+ </p>
+ <p class="speak-as-digits">AT20 4200 2950 9100 8000</p>
+ <h2>Instructions for Manual Test</h2>
+ <ol>
+ <li>Open the website in your browser.</li>
+ <li>
+ Activate your screen reader (NVDA, VoiceOver, TalkBack etc.) and, in browse mode, navigate to the paragraph following the first heading.
+ </li>
+ <li>
+ The screen reader should read the bank account number one digit at a time: two zero four two zero zero two nine five zero nine one zero zero eight zero zero zero
+ </li>
+ </ol>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/css-speech/speak-as/speak-as-literal-punctuation-001-manual.html b/testing/web-platform/tests/css/css-speech/speak-as/speak-as-literal-punctuation-001-manual.html
new file mode 100644
index 0000000000..8d67b9ba30
--- /dev/null
+++ b/testing/web-platform/tests/css/css-speech/speak-as/speak-as-literal-punctuation-001-manual.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS Test: speak-as literal-punctuation</title>
+ <link rel="author" title="Alexander Lehner" href="mailto:alexlehner86@gmail.com">
+ <link rel="help" href="https://www.w3.org/TR/css-speech-1/#speaking-props-speak-as">
+ <meta
+ name="flags"
+ content="speech"
+ >
+ <meta
+ name="assert"
+ content="The literal-punctuation value of speak-as makes screen readers announce punctuation."
+ >
+ <style>
+ p.speak-as-literal-punctuation { speak-as: literal-punctuation; }
+ </style>
+ </head>
+ <body>
+ <h1>Test Case</h1>
+ <p>
+ The punctuation in the following text should be announced by screen readers:
+ </p>
+ <p class="speak-as-literal-punctuation">class MyClass { myProperty = 1; }</p>
+ <h2>Instructions for Manual Test</h2>
+ <ol>
+ <li>Open the website in your browser.</li>
+ <li>
+ Activate your screen reader (NVDA, VoiceOver, TalkBack etc.).
+ </li>
+ <li>
+ Set verbosity preferences of the screen reader to default setting, which ignores most punctuation (e.g. comma, period, parentheses).
+ </li>
+ <li>In the screen reader's browse mode, navigate to the paragraph following the first heading.</li>
+ <li>
+ The screen reader should still announce all punctuation (parentheses, semicolon etc.) in the paragraph.
+ </li>
+ </ol>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/css-speech/speak-as/speak-as-spell-out-001-manual.html b/testing/web-platform/tests/css/css-speech/speak-as/speak-as-spell-out-001-manual.html
new file mode 100644
index 0000000000..5643350e41
--- /dev/null
+++ b/testing/web-platform/tests/css/css-speech/speak-as/speak-as-spell-out-001-manual.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS Test: speak-as spell-out</title>
+ <link rel="author" title="Alexander Lehner" href="mailto:alexlehner86@gmail.com">
+ <link rel="help" href="https://www.w3.org/TR/css-speech-1/#speaking-props-speak-as">
+ <meta
+ name="flags"
+ content="speech"
+ >
+ <meta
+ name="assert"
+ content="The spell-out value of speak-as makes screen readers spell each single letter."
+ >
+ <style>
+ p.speak-as-spell-out { speak-as: spell-out; }
+ </style>
+ </head>
+ <body>
+ <h1>Test Case</h1>
+ <p>
+ The following abbreviation should be read one letter at a time:
+ </p>
+ <p class="speak-as-spell-out">way</p>
+ <h2>Instructions for Manual Test</h2>
+ <ol>
+ <li>Open the website in your browser.</li>
+ <li>
+ Activate your screen reader (NVDA, VoiceOver, TalkBack etc.) and, in browse mode, navigate to the paragraph following the first heading.
+ </li>
+ <li>
+ The screen reader should spell the abbreviation "way" as W, A, Y.
+ </li>
+ </ol>
+ </body>
+</html>