SpeechSynthesis.Voice.toString should report the language code (not the voice name), so the correct language name is displayed

This commit is contained in:
Reece H. Dunn
2012-12-17 18:54:44 +00:00
parent 54b9cb161b
commit 0a69c19112
3 changed files with 40 additions and 15 deletions
@@ -203,7 +203,7 @@ public class SpeechSynthesisTest extends AndroidTestCase
assertThat(voice.locale.getCountry(), is(data.ianaCountry));
assertThat(voice.locale.getISO3Country(), is(data.javaCountry));
assertThat(voice.locale.getVariant(), is(data.variant));
assertThat(voice.toString(), is(data.name));
assertThat(voice.toString(), is(data.locale));
}
catch (AssertionError e)
{