Title: [291009] trunk
Revision
291009
Author
[email protected]
Date
2022-03-08 13:39:43 -0800 (Tue, 08 Mar 2022)

Log Message

AX: Speech Synthesis no longer returning list of voices in macOS 12.3
https://bugs.webkit.org/show_bug.cgi?id=237584
<rdar://problem/89952347>

Reviewed by Andres Gonzalez.

Source/WTF:

The minimum macOS version was meant to be 13 and above, but we started including 12.x releases inadvertently.

* wtf/PlatformHave.h:

LayoutTests:

* fast/speechsynthesis/voices-non-mock-expected.txt: Added.
* fast/speechsynthesis/voices-non-mock.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (291008 => 291009)


--- trunk/LayoutTests/ChangeLog	2022-03-08 21:25:12 UTC (rev 291008)
+++ trunk/LayoutTests/ChangeLog	2022-03-08 21:39:43 UTC (rev 291009)
@@ -1,3 +1,14 @@
+2022-03-08  Chris Fleizach  <[email protected]>
+
+        AX: Speech Synthesis no longer returning list of voices in macOS 12.3
+        https://bugs.webkit.org/show_bug.cgi?id=237584
+        <rdar://problem/89952347>
+
+        Reviewed by Andres Gonzalez.
+
+        * fast/speechsynthesis/voices-non-mock-expected.txt: Added.
+        * fast/speechsynthesis/voices-non-mock.html: Added.
+
 2022-03-08  Chris Dumez  <[email protected]>
 
         Unreviewed, silence console logging for http/tests/security/cookie-module-import-propagate.html

Added: trunk/LayoutTests/fast/speechsynthesis/voices-non-mock-expected.txt (0 => 291009)


--- trunk/LayoutTests/fast/speechsynthesis/voices-non-mock-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/speechsynthesis/voices-non-mock-expected.txt	2022-03-08 21:39:43 UTC (rev 291009)
@@ -0,0 +1,12 @@
+This tests that we can get synthesizer voices.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS voiceCount > 20 is true
+PASS foundEnglishVoice is true
+PASS foundDefaultVoice is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/fast/speechsynthesis/voices-non-mock.html (0 => 291009)


--- trunk/LayoutTests/fast/speechsynthesis/voices-non-mock.html	                        (rev 0)
+++ trunk/LayoutTests/fast/speechsynthesis/voices-non-mock.html	2022-03-08 21:39:43 UTC (rev 291009)
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src=""
+</head>
+<body>
+
+<script>
+    description("This tests that we can get synthesizer voices.");
+
+    var speech = window.speechSynthesis;
+    var list = speech.getVoices();
+
+    var foundDefaultVoice = false;
+    var foundEnglishVoice = false;
+    var voiceCount = list.length;
+
+    for (let k = 0; k < list.length; k++) {
+        let voice = list[k];
+        if (voice.lang == "en-US")
+            foundEnglishVoice = true;
+        if (voice.default)
+            foundDefaultVoice = true;
+    }
+
+    shouldBeTrue("voiceCount > 20");
+    shouldBeTrue("foundEnglishVoice");
+    shouldBeTrue("foundDefaultVoice");
+
+</script>
+
+</body>
+</html>

Modified: trunk/Source/WTF/ChangeLog (291008 => 291009)


--- trunk/Source/WTF/ChangeLog	2022-03-08 21:25:12 UTC (rev 291008)
+++ trunk/Source/WTF/ChangeLog	2022-03-08 21:39:43 UTC (rev 291009)
@@ -1,3 +1,15 @@
+2022-03-08  Chris Fleizach  <[email protected]>
+
+        AX: Speech Synthesis no longer returning list of voices in macOS 12.3
+        https://bugs.webkit.org/show_bug.cgi?id=237584
+        <rdar://problem/89952347>
+
+        Reviewed by Andres Gonzalez.
+
+        The minimum macOS version was meant to be 13 and above, but we started including 12.x releases inadvertently.
+
+        * wtf/PlatformHave.h:
+
 2022-03-08  Youenn Fablet  <[email protected]>
 
         Add a preference to mute video capture in case audio capture gets interrupted

Modified: trunk/Source/WTF/wtf/PlatformHave.h (291008 => 291009)


--- trunk/Source/WTF/wtf/PlatformHave.h	2022-03-08 21:25:12 UTC (rev 291008)
+++ trunk/Source/WTF/wtf/PlatformHave.h	2022-03-08 21:39:43 UTC (rev 291009)
@@ -797,7 +797,7 @@
 #endif
 #endif
 
-#if ((PLATFORM(IOS) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 140300) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 120000)
+#if ((PLATFORM(IOS) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 140300) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 130000)
 #if !defined(HAVE_AVSPEECHSYNTHESIS_SYSTEMVOICE)
 #define HAVE_AVSPEECHSYNTHESIS_SYSTEMVOICE 1
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to