You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by martincgg <gi...@git.apache.org> on 2014/07/18 23:55:00 UTC

[GitHub] cordova-plugin-media pull request: CB-6963 Port Media manual & aut...

GitHub user martincgg opened a pull request:

    https://github.com/apache/cordova-plugin-media/pull/21

    CB-6963 Port Media manual & automated tests for plugin-test-framework

    Ported 17 Media automated & manual tests from mobilespec.
    
    This commit adds the work done by javierbb31
    
    Jasmine version: ported from v1.3 to v2.0
    
    Features(automated tests):
    -No spies.
    -Tests failing faster, when a error callback or unexpected success
    callback is received, the test fails immediately.
    -Jasmine report with more information about the failed operation, which
    contains the operation and a description about it.
    -Jasmine reports include error callback object.
    -Two timeout statement to just wait until the a media file is
    reproduced, there are no more timeouts than those.
    -Added a control variable to ensure that a callback is reached only
    once.
    
    Bugs:
    There are two bugs reported as direct result of this porting activity.
    
    CB-7092:
    https://github.com/martincgg/cordova-plugin-media/blob/9fab60a8a3de2b68cb96fdcdd36cbdbfff73ce8e/test/tests.js#L158
    
    This one it's about a conditional added in case that the platform is
    windows phone, on that platform it has an unexpected behavior at the
    error callback. If the platform is windows phone the test is going to
    fail, until the bug is fixed, this specific problem causes a mess with
    the rest of the test.
    All details related to this:
    https://issues.apache.org/jira/browse/CB-7092
    
    CB-7099:
    https://github.com/martincgg/cordova-plugin-media/blob/9fab60a8a3de2b68cb96fdcdd36cbdbfff73ce8e/test/tests.js#L188
    
    https://github.com/martincgg/cordova-plugin-media/blob/9fab60a8a3de2b68cb96fdcdd36cbdbfff73ce8e/test/tests.js#L215

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/martincgg/cordova-plugin-media CB-6963

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-media/pull/21.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #21
    
----
commit fda53f588b7e2ccefabaabc691abdec5f660ee53
Author: javierbb31 <ja...@gmail.com>
Date:   2014-07-18T19:34:08Z

    CB-6963. Port media tests to plugin-test-framework
    
    Ported media test form mobilespec to the new test-framework in jasmine
    2.0
    Added test folder
    Added tests.js file inside the test folder.

commit 3317891cc7e2071a6e0ab81f223e2a9210ebb66f
Author: Martin Gonzalez <ma...@gmail.com>
Date:   2014-07-18T21:51:58Z

    CB-6963 Port Media manual & automated tests
    
    Ported 17 Media automated & manual tests from mobilespec.
    
    This commit adds the work done by javierbb31
    
    Jasmine version: ported from v1.3 to v2.0
    
    Features(automated tests):
    -No spies.
    -Tests failing faster, when a error callback or unexpected success
    callback is received, the test fails immediately.
    -Jasmine report with more information about the failed operation, which
    contains the operation and a description about it.
    -Jasmine reports include error callback object.
    -Two timeout statement to just wait until the a media file is
    reproduced, there are no more timeouts than those.
    -Added a control variable to ensure that a callback is reached only
    once.
    
    Bugs:
    There are two bugs reported as direct result of this porting activity.
    
    CB-7092
    
    https://github.com/martincgg/cordova-plugin-media/blob/9fab60a8a3de2b68cb96fdcdd36cbdbfff73ce8e/test/tests.js#L158
    
    This one it's about a conditional added in case that the platform is
    windows phone, on that platform it has an unexpected behavior at the
    error callback. If the platform is windows phone the test is going to
    fail, until the bug is fixed, this specific problem causes a mess with
    the rest of the test.
    All details related to this:
    https://issues.apache.org/jira/browse/CB-7092
    
    CB-7099
    
    https://github.com/martincgg/cordova-plugin-media/blob/9fab60a8a3de2b68cb96fdcdd36cbdbfff73ce8e/test/tests.js#L188
    
    https://github.com/martincgg/cordova-plugin-media/blob/9fab60a8a3de2b68cb96fdcdd36cbdbfff73ce8e/test/tests.js#L215

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cordova-plugin-media pull request: CB-6963 Port Media manual & aut...

Posted by martincgg <gi...@git.apache.org>.
Github user martincgg commented on the pull request:

    https://github.com/apache/cordova-plugin-media/pull/21#issuecomment-50857321
  
    Removed old media tests:
    https://github.com/apache/cordova-mobile-spec/pull/85


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cordova-plugin-media pull request: CB-6963 Port Media manual & aut...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-plugin-media/pull/21


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---