Commit Graph
30 Commits
Author SHA1 Message Date
Reece H. Dunn 784c5e9c2d Update the sample text tests for Android 6.0 (marshmallow). 2015-10-08 20:31:33 +01:00
Reece H. Dunn c14cfbf912 SpeechSynthesis: test for and prevent duplicate voice entries 2014-10-30 16:07:49 +00:00
Reece H. Dunn 1740026c1c SpeechSynthesisTest: make mVoices a Map 2014-10-30 14:56:16 +00:00
Reece H. Dunn 58047cef67 [Android 5.0] TTS settings crashes on hye-arevmda 2014-10-30 14:23:58 +00:00
Reece H. Dunn 8fe359d0e4 Remove unused imports. 2014-10-28 16:47:32 +00:00
Reece H. Dunn cc0341e799 tests: map TextToSpeech.LANG_* to strings.
This creates a custom hamcrest matcher that maps the TextToSpeech
LANG_* constants to strings. This makes it easier to read the
text output when the tests fail.
2014-10-28 16:11:51 +00:00
Reece H. Dunn 328f4cfdc9 Test and fix Java to IANA country code mapping. 2014-10-28 15:33:11 +00:00
Reece H. Dunn 6576742917 Test and fix Java to IANA language code mapping. 2014-10-28 15:23:53 +00:00
Reece H. Dunn aebd02fa68 Remove the Android 2.x/3.x support code.
The Android 4.x+ code has changed a lot since the initial import
of the eyes-free codebase. A lot of bug fixes and improvements
have been made to it.

The eyes-free codebase had two different code paths:
  *  one for ICS (4.0) or later, using the Java-based TTS APIs
     provided by the Android platform;
  *  one for pre-ICS using an internal C++-based TTS API.

Thus, any bug fixes or improvements would have to be done to both
code bases if Android 2.x/3.x support is required. This is not
maintainable.

If pre-ICS support is to be re-added in the future, the plan will
be to:
  *  forward the C++-based APIs to the Java-based APIs via a
     compatibility layer;
  *  use a compatibility layer (Android Support Library?) for using
     the ICS settings API on pre-ICS.
2013-09-08 12:01:20 +01:00
Reece H. Dunn 4a1743b174 Factor out the TextToSpeech engine initialization to a TextToSpeechTestCase helper class. 2013-07-28 16:31:48 +01:00
Reece H. Dunn bb0a8a3c7a Ensure the tests pass on Android 4.0 - 4.2. 2013-07-28 15:34:30 +01:00
Reece H. Dunn 7ee59ed331 SpeechSynthesis: factor out the Voice class into its own file. 2013-05-09 13:56:02 +01:00
Reece H. Dunn 44bd818bc3 Update the tests to cover the voice changes in eSpeak. 2013-03-26 11:39:17 +00:00
Reece H. Dunn e96f2e3a92 eSpeakTests: update the VoiceData to reflect the directory layout changes 2013-03-14 17:53:18 +00:00
Reece H. Dunn 6edd17eb0c Add tests verifying that calling getSampleText does not change the apps locale. 2013-01-16 18:58:11 +00:00
Reece H. Dunn f455a466c3 Do not add a voice if the Locale assigns a blank ISO3 language code. 2013-01-16 18:42:33 +00:00
Reece H. Dunn 7dd1d66e4a Fix the shared object name for API 8 compatibility, with tests. 2012-12-18 19:25:09 +00:00
Reece H. Dunn dc4f85865d SpeechSynthesis: fix the getSampleText behaviour when passed Java-style locale codes. 2012-12-18 15:39:00 +00:00
Reece H. Dunn 2a3a1a0a81 Move the sample text logic into SpeechSynthesis.getSampleText and add test cases for it. 2012-12-18 14:38:57 +00:00
Reece H. Dunn 0a69c19112 SpeechSynthesis.Voice.toString should report the language code (not the voice name), so the correct language name is displayed 2012-12-17 18:54:44 +00:00
Reece H. Dunn 5a2cfb2e7c SpeechSynthesisTest: skip testing voice data for missing voices. 2012-12-17 16:50:24 +00:00
Reece H. Dunn aed6bc0365 SpeechSynthesisTest: calculate the added and removed voices in the getVoices method. 2012-12-17 16:45:50 +00:00
Reece H. Dunn ea623385d6 SpeechSynthesisTest: test for added and removed voices to make it easier to maintain and update the VoiceData.voices list. 2012-12-17 16:36:38 +00:00
Reece H. Dunn 32efff8500 VoiceData.Exception: use AssertionError instead of Exception to get the language in the JUnit results. 2012-12-17 14:13:09 +00:00
Reece H. Dunn 87ccc3a61e SpeechSynthesisTest: check the number of voices against the length of the test data array (VoiceData.voices) instead of hard coding it. 2012-12-17 14:10:18 +00:00
Reece H. Dunn 8d586dd52c SpeechSynthesisTest: factor out the voice data into a reusable, queryable list 2012-12-16 01:11:38 +00:00
Reece H. Dunn 86fe261425 SpeechSynthesisTest: Add tests for Voice.match using 3-letter language and country codes. 2012-12-15 14:36:42 +00:00
Reece H. Dunn 51da7f2478 SpeechSynthesisTest: Add tests for Voice.toString. 2012-12-15 14:18:51 +00:00
Reece H. Dunn 5277a6788a SpeechSynthesisTest: Add tests for Voice.match. 2012-12-15 14:16:10 +00:00
Reece H. Dunn 1a28553d4c Add tests for the data returned by the SpeechSynthesis class, specifically the Voice locale entries. 2012-12-14 23:39:18 +00:00