Changes between Initial Version and Version 2 of Ticket #4146


Ignore:
Timestamp:
06/10/2016 10:57:40 AM (3 years ago)
Author:
asmirnov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4146

    • Property Summary changed from Fix failing UpdateCheckTest.testApplicationUpdateAvailable test in libadblock to Fix failing UpdateCheckTest.testApplicationUpdateAvailable test in libadblockplus-android
  • Ticket #4146 – Description

    initial v2  
    11UpdateCheckTest.testApplicationUpdateAvailable is written similar to https://hg.adblockplus.org/libadblockplus/file/tip/test/UpdateCheck.cpp#l177. 
    22 
    3 For some reason it fails permanently for `JsValue` class not found. Other test in that test class succeed and the class is found. I've found changing response text (`webRequest.response.setResponse( 
    4             "{\"1/4\": {\"version\":\"3.1\",\"url\":\"https://foo.bar/\"}}");`) or response code (`webRequest.response.setStatus(ServerResponse.NsStatus.OK);`) affects this and makes the class available. 
     3For some reason it fails permanently for `JsValue` class not found. Other test in that test class succeed and the class is found. I've found changing response text ( 
     4{{{ 
     5webRequest.response.setResponse( 
     6            "{\"1/4\": {\"version\":\"3.1\",\"url\":\"https://foo.bar/\"}}"); 
     7}}} 
     8) or response code ( 
     9{{{ 
     10webRequest.response.setStatus(ServerResponse.NsStatus.OK); 
     11}}} 
     12) affects this and makes the class available. 
    513 
    614ant run log: