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); |