You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by vladimir-kotikov <gi...@git.apache.org> on 2016/02/29 17:03:56 UTC

[GitHub] cordova-android pull request: CB-10729 Move plugin handlers tests ...

GitHub user vladimir-kotikov opened a pull request:

    https://github.com/apache/cordova-android/pull/265

    CB-10729 Move plugin handlers tests for into platform's repo

    JIRA: https://issues.apache.org/jira/browse/CB-10729

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

    $ git pull https://github.com/MSOpenTech/cordova-android CB-10729

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

    https://github.com/apache/cordova-android/pull/265.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 #265
    
----
commit 291fd586701e5dc58e42fd97a4915fb2311710de
Author: Vladimir Kotikov <v-...@microsoft.com>
Date:   2016-02-29T15:49:17Z

    CB-10729 Move plugin handlers tests for into platform's repo

----


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-android pull request: CB-10729 Move plugin handlers tests ...

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

    https://github.com/apache/cordova-android/pull/265


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-android pull request: CB-10729 Move plugin handlers tests ...

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

    https://github.com/apache/cordova-android/pull/265#issuecomment-190563854
  
    LGTM - though one test is failing.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-android pull request: CB-10729 Move plugin handlers tests ...

Posted by vladimir-kotikov <gi...@git.apache.org>.
Github user vladimir-kotikov commented on a diff in the pull request:

    https://github.com/apache/cordova-android/pull/265#discussion_r54531747
  
    --- Diff: bin/templates/cordova/lib/pluginHandlers.js ---
    @@ -31,7 +31,7 @@ var handlers = {
                 if (!obj.src) throw new CordovaError('<source-file> element is missing "src" attribute for plugin: ' + plugin.id);
                 if (!obj.targetDir) throw new CordovaError('<source-file> element is missing "target-dir" attribute for plugin: ' + plugin.id);
                 var dest = path.join(obj.targetDir, path.basename(obj.src));
    -            copyNewFile(plugin.dir, obj.src, project.projectDir, dest, options && options.link);
    +            copyNewFile(plugin.dir, obj.src, project.projectDir, dest, !!(options && options.link));
    --- End diff --
    
    Just some divergence between expected spy arguments and actual ones, Not a bug probably, but i preferred to change parameter type rather than tests.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-android pull request: CB-10729 Move plugin handlers tests ...

Posted by nikhilkh <gi...@git.apache.org>.
Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-android/pull/265#discussion_r54526677
  
    --- Diff: bin/templates/cordova/lib/pluginHandlers.js ---
    @@ -31,7 +31,7 @@ var handlers = {
                 if (!obj.src) throw new CordovaError('<source-file> element is missing "src" attribute for plugin: ' + plugin.id);
                 if (!obj.targetDir) throw new CordovaError('<source-file> element is missing "target-dir" attribute for plugin: ' + plugin.id);
                 var dest = path.join(obj.targetDir, path.basename(obj.src));
    -            copyNewFile(plugin.dir, obj.src, project.projectDir, dest, options && options.link);
    +            copyNewFile(plugin.dir, obj.src, project.projectDir, dest, !!(options && options.link));
    --- End diff --
    
    Did the test find a bug here?


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org