[TIMOB-11751] Android: HTTPClient.onreadystatechange not dispatched
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-11-14T00:33:17.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 API |
Components | Android |
Labels | 3.0.0beta2, module_network, qe-testadded, regression, triage |
Reporter | Josh Roesslein |
Assignee | Ping Wang |
Created | 2012-11-13T18:56:11.000+0000 |
Updated | 2013-10-03T07:30:19.000+0000 |
Description
The HTTPClient on Android is not dispatching the callback "onreadystatechange".
There appears to be a typo in TiHTTPClient.java with the callback
being named "onreadystatechanged" (notice the 'd' at the end).
Along with fixing this typo we should create a new Anvil test
case to catch future regressions in the HTTP callbacks. At least
verify each one fires at the correct time.
PR: https://github.com/appcelerator/titanium_mobile/pull/3420 Steps for FR: 1. Run the test case below on both rhino and v8:
2. Check the console. Should see the log:
3. Run Anvil -> network_httpclient -> callbackTestForGETMethod/callbackTestForPOSTMethod. The tests should pass on v8. They fail on rhino for now. Already filed TIMOB-11758 for this issue.
3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3423
Closing as fixed. Tested on: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, builds: 3.0.0.v20121204181658; 3.1.0.v20121203181001 Devices: Motorola RAZR i XT890 (4.0.4)