incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <>
Subject [jira] [Commented] (CB-382) [iOS] Create tests for CDVLocalStorage core plugin
Date Thu, 05 Jul 2012 02:52:34 GMT


Andrew Grieve commented on CB-382:

Some initial investigations into this reveal that using:

while (!loaded) {
  [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]];

Will cause the webview to finish loading. Also, a second call to it is required after executing
a localStorage.setItem() in order for the file__0.localstorage file to be written to disk.

I'll put together a unit test base class using this technique as well as some tests for CDVLocalStorage.
> [iOS] Create tests for CDVLocalStorage core plugin
> --------------------------------------------------
>                 Key: CB-382
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Test
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.0.0
> Can't get a delay for UIWebViewDelegate::webViewDidStartLoad before unit-tests run -
postponing this

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message