mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Add Unittest for Rtl + some small fixes
This commit is contained in:
parent
761d8327f9
commit
84fa1b011a
@ -114,4 +114,18 @@ public class DeviceCommunicationServiceTestCase extends TestBase {
|
||||
|
||||
assertEquals("Transliteration support fail!", "Prosto tekct", result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRtlSupport() {
|
||||
SharedPreferences settings = GBApplication.getPrefs().getPreferences();
|
||||
SharedPreferences.Editor editor = settings.edit();
|
||||
editor.putBoolean("rtl", true);
|
||||
editor.commit();
|
||||
|
||||
Intent intent = mDeviceService.createIntent().putExtra(EXTRA_NOTIFICATION_BODY, "English and עברית");
|
||||
mDeviceService.invokeService(intent);
|
||||
String result = intent.getStringExtra(EXTRA_NOTIFICATION_BODY);
|
||||
|
||||
assertEquals("Rtl support fail!", "תירבע English and", result);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user