Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java |
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java |
index 0b6ff726430226c90000b09b475501356bbcee49..96095dd0fea3b9fd41d9fb1976cc226de6a0048e 100644 |
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java |
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java |
@@ -24,41 +24,41 @@ import org.junit.Test; |
public class AppInfoJsObjectTest extends BaseJsTest |
{ |
- @Test |
- public void testAllProperties() |
- { |
- AppInfo appInfo = AppInfo |
- .builder() |
- .setVersion("1") |
- .setName("3") |
- .setApplication("4") |
- .setApplicationVersion("5") |
- .setLocale("2") |
- .setDevelopmentBuild(true) |
- .build(); |
+ @Test |
+ public void testAllProperties() |
+ { |
+ AppInfo appInfo = AppInfo |
+ .builder() |
+ .setVersion("1") |
+ .setName("3") |
+ .setApplication("4") |
+ .setApplicationVersion("5") |
+ .setLocale("2") |
+ .setDevelopmentBuild(true) |
+ .build(); |
- JsEngine jsEngine = new JsEngine(appInfo); |
- assertEquals("1", jsEngine.evaluate("_appInfo.version").asString()); |
- assertEquals("3", jsEngine.evaluate("_appInfo.name").asString()); |
- assertEquals("4", jsEngine.evaluate("_appInfo.application").asString()); |
- assertEquals("5", jsEngine.evaluate("_appInfo.applicationVersion").asString()); |
- assertEquals("2", jsEngine.evaluate("_appInfo.locale").asString()); |
- assertTrue(jsEngine.evaluate("_appInfo.developmentBuild").asBoolean()); |
- } |
+ JsEngine jsEngine = new JsEngine(appInfo); |
+ assertEquals("1", jsEngine.evaluate("_appInfo.version").asString()); |
+ assertEquals("3", jsEngine.evaluate("_appInfo.name").asString()); |
+ assertEquals("4", jsEngine.evaluate("_appInfo.application").asString()); |
+ assertEquals("5", jsEngine.evaluate("_appInfo.applicationVersion").asString()); |
+ assertEquals("2", jsEngine.evaluate("_appInfo.locale").asString()); |
+ assertTrue(jsEngine.evaluate("_appInfo.developmentBuild").asBoolean()); |
+ } |
- @Test |
- public void testDefaultPropertyValues() |
- { |
- AppInfo appInfo = AppInfo |
- .builder() |
- .build(); |
+ @Test |
+ public void testDefaultPropertyValues() |
+ { |
+ AppInfo appInfo = AppInfo |
+ .builder() |
+ .build(); |
- JsEngine jsEngine = new JsEngine(appInfo); |
- assertEquals("0", jsEngine.evaluate("_appInfo.version").asString()); |
- assertEquals("adblockplusandroid", jsEngine.evaluate("_appInfo.name").asString()); |
- assertEquals("android", jsEngine.evaluate("_appInfo.application").asString()); |
- assertEquals("0", jsEngine.evaluate("_appInfo.applicationVersion").asString()); |
- assertEquals("en_US", jsEngine.evaluate("_appInfo.locale").asString()); |
- assertFalse(jsEngine.evaluate("_appInfo.developmentBuild").asBoolean()); |
- } |
+ JsEngine jsEngine = new JsEngine(appInfo); |
+ assertEquals("0", jsEngine.evaluate("_appInfo.version").asString()); |
+ assertEquals("adblockplusandroid", jsEngine.evaluate("_appInfo.name").asString()); |
+ assertEquals("android", jsEngine.evaluate("_appInfo.application").asString()); |
+ assertEquals("0", jsEngine.evaluate("_appInfo.applicationVersion").asString()); |
+ assertEquals("en_US", jsEngine.evaluate("_appInfo.locale").asString()); |
+ assertFalse(jsEngine.evaluate("_appInfo.developmentBuild").asBoolean()); |
+ } |
} |