Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestTest.java |
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestTest.java |
index 02060dbbe9d355dea2a70012a48312cc10141036..53200e191bc817a1d2edb9b6cd40a800b8232bae 100644 |
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestTest.java |
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AndroidWebRequestTest.java |
@@ -17,6 +17,7 @@ |
package org.adblockplus.libadblockplus.tests; |
+import org.adblockplus.libadblockplus.JsEngine; |
import org.adblockplus.libadblockplus.WebRequest; |
import org.adblockplus.libadblockplus.android.AndroidWebRequest; |
import org.adblockplus.libadblockplus.FilterEngine; |
@@ -43,6 +44,7 @@ public class AndroidWebRequestTest extends BaseFilterEngineTest |
@Test |
public void testRealWebRequest() |
{ |
+ JsEngine jsEngine = platform.getJsEngine(); |
// This URL should redirect to easylist-downloads.adblockplus.org and we |
// should get the actual filter list back. |
jsEngine.evaluate( |
@@ -83,6 +85,7 @@ public class AndroidWebRequestTest extends BaseFilterEngineTest |
@Test |
public void testXMLHttpRequest() |
{ |
+ JsEngine jsEngine = platform.getJsEngine(); |
jsEngine.evaluate( |
"var result;\n" + |
"var request = new XMLHttpRequest();\n" + |