Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java

Issue 29536629: Issue 5556 - Update to use libadblockplus revision hg:566f64c8a2a8 (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: address comment Created Sept. 8, 2017, 12:20 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 a82e0f05cb4c651ddf7a0dc05ddb448e714b0708..4023a79a091959c578d7173c6f01a3dcccc9879b 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java
@@ -22,7 +22,7 @@ import org.adblockplus.libadblockplus.JsEngine;
import org.junit.Test;
-public class AppInfoJsObjectTest extends BaseJsEngineTest
+public class AppInfoJsObjectTest extends BasePlatformTest
{
@Test
public void testAllProperties()
@@ -37,7 +37,8 @@ public class AppInfoJsObjectTest extends BaseJsEngineTest
.setDevelopmentBuild(true)
.build();
- JsEngine jsEngine = new JsEngine(appInfo);
+ platform.setUpJsEngine(appInfo);
+ JsEngine jsEngine = platform.getJsEngine();
assertEquals("1", jsEngine.evaluate("_appInfo.version").asString());
assertEquals("3", jsEngine.evaluate("_appInfo.name").asString());
assertEquals("4", jsEngine.evaluate("_appInfo.application").asString());
@@ -52,8 +53,8 @@ public class AppInfoJsObjectTest extends BaseJsEngineTest
AppInfo appInfo = AppInfo
.builder()
.build();
-
- JsEngine jsEngine = new JsEngine(appInfo);
+ platform.setUpJsEngine(appInfo);
+ JsEngine jsEngine = platform.getJsEngine();
assertEquals("1.0", jsEngine.evaluate("_appInfo.version").asString());
assertEquals("libadblockplus-android", jsEngine.evaluate("_appInfo.name").asString());
assertEquals("android", jsEngine.evaluate("_appInfo.application").asString());

Powered by Google App Engine
This is Rietveld