Commit Graph
19 Commits
Author SHA1 Message Date
Reece H. Dunn c4230b01ca Make Voice return the Java-based (ISO 639-3) language and country codes. 2015-10-09 06:55:52 +01:00
Reece H. Dunn 98208df155 TextToSpeechTest: provide more context information 2014-10-30 11:24:41 +00:00
Reece H. Dunn c9003c50ba TextToSpeech: test and fix onIsValidVoiceName 2014-10-29 19:50:43 +00:00
Reece H. Dunn daa9326eb2 TextToSpeechTest: languages with codes not supported by Android are not present 2014-10-29 19:18:41 +00:00
Reece H. Dunn 83326027bf TextToSpeechTest: factor out the language checks 2014-10-29 19:17:26 +00:00
Reece H. Dunn f9912e0c41 TtsService: fix and test onGetVoice.
The default Android 5.0 implementation enumerates the available
locales. This enumerates the voices returned by eSpeak.
2014-10-29 18:21:31 +00:00
Reece H. Dunn 702f8be24f TextToSpeechTest: always test getLanguage.
This changes the getLanguage helper to return the result from
getLanguage on all platform versions, disabling the deprecated
message on API 21 and above.
2014-10-29 16:32:25 +00:00
Reece H. Dunn 0dd897471c tests: initial language may be null 2014-10-28 19:05:21 +00:00
Reece H. Dunn 3d2308e285 Use API 21. 2014-10-28 18:30:16 +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 4a1743b174 Factor out the TextToSpeech engine initialization to a TextToSpeechTestCase helper class. 2013-07-28 16:31:48 +01:00
Reece H. Dunn 8e1872c4e9 TextToSpeechTest: add context information to testLanguages. 2013-05-09 12:58:10 +01: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 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 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 b30311a7d7 TextToSpeechTest: move out the unsupported language tests to a separate method and check that the language does not get updated. 2012-12-16 11:27:33 +00:00
Reece H. Dunn 7816a0a204 TtsService: set the language properties to the matched voice, not the requested voice 2012-12-16 11:14:12 +00:00
Reece H. Dunn 4cbf26883b TextToSpeechTest: add tests for TextToSpeech.set/getLanguage. 2012-12-16 01:43:41 +00:00
Reece H. Dunn 2bdd4aab27 TextToSpeechTest: add tests for TextToSpeech.isLanguageAvailable. 2012-12-16 01:34:20 +00:00