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

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

Issue 29536629: Issue 5556 - Update to use libadblockplus revision hg:566f64c8a2a8 (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: Created Sept. 5, 2017, 12:59 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/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" +

Powered by Google App Engine
This is Rietveld