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: 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/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" +
« no previous file with comments | « dependencies ('k') | libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/AppInfoJsObjectTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld