You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2012/10/31 23:43:12 UTC

[jira] [Created] (CB-1793) Fix Objective-C unit tests

Shazron Abdullah created CB-1793:
------------------------------------

             Summary: Fix Objective-C unit tests
                 Key: CB-1793
                 URL: https://issues.apache.org/jira/browse/CB-1793
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.2.0
            Reporter: Shazron Abdullah
            Assignee: Shazron Abdullah
             Fix For: 2.3.0


2 suites failed (CDVLocalStorage, FileTransfer). ContactTests failures are expected.

4 CDVLocalStorageTests failed:
Test Suite 'CDVLocalStorageTests' started at 2012-10-31 22:37:53 +0000
Test Case '-[CDVLocalStorageTests testBackupAndRestore]' started.
2012-10-31 15:37:53.833 CordovaLibApp[17467:c07] Multi-tasking -> Device: YES, App: YES
2012-10-31 15:37:53.837 CordovaLibApp[17467:c07] Deprecated: BackupWebStorage boolean property is a string property now (none, local, cloud). A boolean value of 'true' will be mapped to 'cloud'. Consult the docs: http://docs.cordova.io/en/edge/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS
2012-10-31 15:37:53.992 CordovaLibApp[17467:c07] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
Unknown.m:0: error: -[CDVLocalStorageTests testBackupAndRestore] : -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
Test Case '-[CDVLocalStorageTests testBackupAndRestore]' failed (0.164 seconds).
Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired1]' started.
2012-10-31 15:37:53.995 CordovaLibApp[17467:c07] Multi-tasking -> Device: YES, App: YES
2012-10-31 15:37:53.996 CordovaLibApp[17467:c07] Deprecated: BackupWebStorage boolean property is a string property now (none, local, cloud). A boolean value of 'true' will be mapped to 'cloud'. Consult the docs: http://docs.cordova.io/en/edge/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS
2012-10-31 15:37:53.999 CordovaLibApp[17467:c07] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
Unknown.m:0: error: -[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired1] : -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired1]' failed (0.017 seconds).
Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired2]' started.
2012-10-31 15:37:54.012 CordovaLibApp[17467:c07] Multi-tasking -> Device: YES, App: YES
2012-10-31 15:37:54.015 CordovaLibApp[17467:c07] Deprecated: BackupWebStorage boolean property is a string property now (none, local, cloud). A boolean value of 'true' will be mapped to 'cloud'. Consult the docs: http://docs.cordova.io/en/edge/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS
2012-10-31 15:37:54.018 CordovaLibApp[17467:c07] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
Unknown.m:0: error: -[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired2] : -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired2]' failed (0.007 seconds).
Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_noChangeRequired]' started.
2012-10-31 15:37:54.033 CordovaLibApp[17467:c07] Multi-tasking -> Device: YES, App: YES
2012-10-31 15:37:54.034 CordovaLibApp[17467:c07] Deprecated: BackupWebStorage boolean property is a string property now (none, local, cloud). A boolean value of 'true' will be mapped to 'cloud'. Consult the docs: http://docs.cordova.io/en/edge/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS
2012-10-31 15:37:54.037 CordovaLibApp[17467:c07] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
Unknown.m:0: error: -[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_noChangeRequired] : -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_noChangeRequired]' failed (0.005 seconds).
Test Suite 'CDVLocalStorageTests' finished at 2012-10-31 22:37:54 +0000.
Executed 4 tests, with 4 failures (4 unexpected) in 0.193 (0.208) seconds

FileTransfer failed in test_upload_chunked. Actually it hangs since we are trying to upload to Apache.org (which we can't upload to of course) - ideally it should timeout quickly and fail, and not hang.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1793) Fix Objective-C unit tests

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488334#comment-13488334 ] 

Shazron Abdullah commented on CB-1793:
--------------------------------------

My bad - the localstorage tests were because I had an outdated Cordova.plist with the old boolean setting for BackupWebStorage. I set it to "cloud". They all pass except for 1:

Test Case '-[CDVLocalStorageTests testBackupAndRestore]' started.
2012-10-31 15:47:23.241 CordovaLibApp[17708:c07] Multi-tasking -> Device: YES, App: YES
/Users/shazron/Documents/Git/Apache/incubator-cordova-ios/CordovaLibTests/CDVWebViewTest.m:105: error: -[CDVLocalStorageTests testBackupAndRestore] : "i < kMinIterations || elapsed < kConditionTimeout" should be true. Timed out waiting for condition shouldBackup
Test Case '-[CDVLocalStorageTests testBackupAndRestore]' failed (5.179 seconds).

                
> Fix Objective-C unit tests
> --------------------------
>
>                 Key: CB-1793
>                 URL: https://issues.apache.org/jira/browse/CB-1793
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> 2 suites failed (CDVLocalStorage, FileTransfer). ContactTests failures are expected.
> 4 CDVLocalStorageTests failed:
> Test Suite 'CDVLocalStorageTests' started at 2012-10-31 22:37:53 +0000
> Test Case '-[CDVLocalStorageTests testBackupAndRestore]' started.
> 2012-10-31 15:37:53.833 CordovaLibApp[17467:c07] Multi-tasking -> Device: YES, App: YES
> 2012-10-31 15:37:53.837 CordovaLibApp[17467:c07] Deprecated: BackupWebStorage boolean property is a string property now (none, local, cloud). A boolean value of 'true' will be mapped to 'cloud'. Consult the docs: http://docs.cordova.io/en/edge/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS
> 2012-10-31 15:37:53.992 CordovaLibApp[17467:c07] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
> Unknown.m:0: error: -[CDVLocalStorageTests testBackupAndRestore] : -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
> Test Case '-[CDVLocalStorageTests testBackupAndRestore]' failed (0.164 seconds).
> Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired1]' started.
> 2012-10-31 15:37:53.995 CordovaLibApp[17467:c07] Multi-tasking -> Device: YES, App: YES
> 2012-10-31 15:37:53.996 CordovaLibApp[17467:c07] Deprecated: BackupWebStorage boolean property is a string property now (none, local, cloud). A boolean value of 'true' will be mapped to 'cloud'. Consult the docs: http://docs.cordova.io/en/edge/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS
> 2012-10-31 15:37:53.999 CordovaLibApp[17467:c07] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
> Unknown.m:0: error: -[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired1] : -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
> Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired1]' failed (0.017 seconds).
> Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired2]' started.
> 2012-10-31 15:37:54.012 CordovaLibApp[17467:c07] Multi-tasking -> Device: YES, App: YES
> 2012-10-31 15:37:54.015 CordovaLibApp[17467:c07] Deprecated: BackupWebStorage boolean property is a string property now (none, local, cloud). A boolean value of 'true' will be mapped to 'cloud'. Consult the docs: http://docs.cordova.io/en/edge/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS
> 2012-10-31 15:37:54.018 CordovaLibApp[17467:c07] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
> Unknown.m:0: error: -[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired2] : -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
> Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_changeRequired2]' failed (0.007 seconds).
> Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_noChangeRequired]' started.
> 2012-10-31 15:37:54.033 CordovaLibApp[17467:c07] Multi-tasking -> Device: YES, App: YES
> 2012-10-31 15:37:54.034 CordovaLibApp[17467:c07] Deprecated: BackupWebStorage boolean property is a string property now (none, local, cloud). A boolean value of 'true' will be mapped to 'cloud'. Consult the docs: http://docs.cordova.io/en/edge/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS
> 2012-10-31 15:37:54.037 CordovaLibApp[17467:c07] -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
> Unknown.m:0: error: -[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_noChangeRequired] : -[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x288a95c
> Test Case '-[CDVLocalStorageTests testVerifyAndFixDatabaseLocations_noChangeRequired]' failed (0.005 seconds).
> Test Suite 'CDVLocalStorageTests' finished at 2012-10-31 22:37:54 +0000.
> Executed 4 tests, with 4 failures (4 unexpected) in 0.193 (0.208) seconds
> FileTransfer failed in test_upload_chunked. Actually it hangs since we are trying to upload to Apache.org (which we can't upload to of course) - ideally it should timeout quickly and fail, and not hang.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira