You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Jesse MacFadyen (Created) (JIRA)" <ji...@apache.org> on 2012/04/02 21:33:21 UTC

[jira] [Created] (CB-424) Many typeof tests are invalid

Many typeof tests are invalid
-----------------------------

                 Key: CB-424
                 URL: https://issues.apache.org/jira/browse/CB-424
             Project: Apache Callback
          Issue Type: Bug
          Components: mobile-spec
    Affects Versions: 1.5.0
            Reporter: Jesse MacFadyen


There are many tests that test the existence of interfaces where duck-typing should be employed.
ex. The geolocation tests test if the code can create a Coordinates object.
The spec says that the Coordinates object has certain properties, but it does NOT specify that window.Coordinates is a function, or that typeof on a returned Coordinates object should be of type Coordinates.
We should be testing solely on the existence of the properties defined in the spec.

Realistically, there is no reason for a developer to create a Coordinates object as none of the APIs expect this object. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-424) Many typeof tests are invalid

Posted by "Filip Maj (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj reassigned CB-424:
----------------------------

    Assignee: Filip Maj
    
> Many typeof tests are invalid
> -----------------------------
>
>                 Key: CB-424
>                 URL: https://issues.apache.org/jira/browse/CB-424
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: mobile-spec
>    Affects Versions: 1.5.0
>            Reporter: Jesse MacFadyen
>            Assignee: Filip Maj
>
> There are many tests that test the existence of interfaces where duck-typing should be employed.
> ex. The geolocation tests test if the code can create a Coordinates object.
> The spec says that the Coordinates object has certain properties, but it does NOT specify that window.Coordinates is a function, or that typeof on a returned Coordinates object should be of type Coordinates.
> We should be testing solely on the existence of the properties defined in the spec.
> Realistically, there is no reason for a developer to create a Coordinates object as none of the APIs expect this object. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-424) Many typeof tests are invalid

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

Filip Maj commented on CB-424:
------------------------------

Actually, we'll be doing general cleanup once we change the unit testing framework to jasmine (general test cleanup and rethinking of some of this stuff).
                
> Many typeof tests are invalid
> -----------------------------
>
>                 Key: CB-424
>                 URL: https://issues.apache.org/jira/browse/CB-424
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: mobile-spec
>    Affects Versions: 1.5.0
>            Reporter: Jesse MacFadyen
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> There are many tests that test the existence of interfaces where duck-typing should be employed.
> ex. The geolocation tests test if the code can create a Coordinates object.
> The spec says that the Coordinates object has certain properties, but it does NOT specify that window.Coordinates is a function, or that typeof on a returned Coordinates object should be of type Coordinates.
> We should be testing solely on the existence of the properties defined in the spec.
> Realistically, there is no reason for a developer to create a Coordinates object as none of the APIs expect this object. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-424) Many typeof tests are invalid

Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-424:
-------------------------

    Fix Version/s: 1.7.0

You're right, tagged for 1.7.0.
                
> Many typeof tests are invalid
> -----------------------------
>
>                 Key: CB-424
>                 URL: https://issues.apache.org/jira/browse/CB-424
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: mobile-spec
>    Affects Versions: 1.5.0
>            Reporter: Jesse MacFadyen
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> There are many tests that test the existence of interfaces where duck-typing should be employed.
> ex. The geolocation tests test if the code can create a Coordinates object.
> The spec says that the Coordinates object has certain properties, but it does NOT specify that window.Coordinates is a function, or that typeof on a returned Coordinates object should be of type Coordinates.
> We should be testing solely on the existence of the properties defined in the spec.
> Realistically, there is no reason for a developer to create a Coordinates object as none of the APIs expect this object. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-424) Many typeof tests are invalid

Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-424:
-------------------------

    Issue Type: Sub-task  (was: Bug)
        Parent: CB-458
    
> Many typeof tests are invalid
> -----------------------------
>
>                 Key: CB-424
>                 URL: https://issues.apache.org/jira/browse/CB-424
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: mobile-spec
>    Affects Versions: 1.5.0
>            Reporter: Jesse MacFadyen
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> There are many tests that test the existence of interfaces where duck-typing should be employed.
> ex. The geolocation tests test if the code can create a Coordinates object.
> The spec says that the Coordinates object has certain properties, but it does NOT specify that window.Coordinates is a function, or that typeof on a returned Coordinates object should be of type Coordinates.
> We should be testing solely on the existence of the properties defined in the spec.
> Realistically, there is no reason for a developer to create a Coordinates object as none of the APIs expect this object. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-424) Many typeof tests are invalid

Posted by "Filip Maj (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj resolved CB-424.
--------------------------

    Resolution: Fixed

Should be all finished up in [245384|http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-mobile-spec.git;a=commit;h=245384dfac45f9dac142217938b1da928589c219].
                
> Many typeof tests are invalid
> -----------------------------
>
>                 Key: CB-424
>                 URL: https://issues.apache.org/jira/browse/CB-424
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: mobile-spec
>    Affects Versions: 1.5.0
>            Reporter: Jesse MacFadyen
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> There are many tests that test the existence of interfaces where duck-typing should be employed.
> ex. The geolocation tests test if the code can create a Coordinates object.
> The spec says that the Coordinates object has certain properties, but it does NOT specify that window.Coordinates is a function, or that typeof on a returned Coordinates object should be of type Coordinates.
> We should be testing solely on the existence of the properties defined in the spec.
> Realistically, there is no reason for a developer to create a Coordinates object as none of the APIs expect this object. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira