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 fcf99f6f55479857aeba342dd9d6212099f5581c..e979a0c2ac15733d8dd89c783e22da4a7a604f86 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; |
@@ -41,6 +42,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( |
@@ -81,6 +83,7 @@ public class AndroidWebRequestTest extends BaseFilterEngineTest |
@Test |
public void testXMLHttpRequest() |
{ |
+ JsEngine jsEngine = platform.getJsEngine(); |
jsEngine.evaluate( |
"var result;\n" + |
"var request = new XMLHttpRequest();\n" + |