1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-22 21:10:21 +02:00

Add Unittest for Rtl + some small fixes

This commit is contained in:
Roi Greenberg 2018-09-05 01:39:01 +03:00
parent 761d8327f9
commit 84fa1b011a

View File

@ -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);
}
}