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

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

Issue 29536596: 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:21 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
« no previous file with comments | « libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/GlobalJsObjectTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java
index 78f9aa1ad2b9d5adbcba3570130275f3768caa93..91b796d847d3e5642c72023402fbfd4ff501219e 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/MockWebRequestTest.java
@@ -131,8 +131,9 @@ public class MockWebRequestTest extends BaseJsTest
public void testSuccessfulRequest() throws InterruptedException
{
jsEngine.evaluate(
- "_webRequest.GET('http://example.com/', {X: 'Y'}, function(result) {foo = result;} )");
- assertTrue(jsEngine.evaluate("this.foo").isUndefined());
+ "let foo = true; _webRequest.GET('http://example.com/', {X: 'Y'}, function(result) {foo = result;} )");
+ assertTrue(jsEngine.evaluate("foo").isBoolean());
+ assertTrue(jsEngine.evaluate("foo").asBoolean());
Thread.sleep(200);
« no previous file with comments | « libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/GlobalJsObjectTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld