[ 
https://issues.apache.org/jira/browse/CB-7896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14222716#comment-14222716
 ] 

ASF GitHub Bot commented on CB-7896:
------------------------------------

Github user sgrebnov commented on a diff in the pull request:

    
https://github.com/apache/cordova-plugin-contacts/pull/49#discussion_r20774412
  
    --- Diff: tests/tests.js ---
    @@ -24,8 +24,9 @@ exports.defineAutoTests = function () {
       // all of the setup/teardown test methods can reference the following 
variables to make sure to do the right cleanup
       var gContactObj = null,
         gContactId = null,
    -    isWindowsPhone = cordova.platformId == 'windowsphone';
    -
    +    isWindowsPhone8 = cordova.platformId == 'windowsphone',
    +    isWindows = (cordova.platformId === "windows") || 
(navigator.appVersion.indexOf("MSAppHost/1.0") !== -1),
    +    isWindowsPhone81 = (navigator.appVersion.indexOf("Windows Phone 8.1;") 
!== -1);
    --- End diff --
    
    isWindows = (cordova.platformId === "windows") || (cordova.platformId === 
"windows8")
    isWindowsPhone81 =  isWIndows && WinJS.Utilities.isPhone


> Some tests for plugin contacts are fails for windows because methods are not 
> supported
> --------------------------------------------------------------------------------------
>
>                 Key: CB-7896
>                 URL: https://issues.apache.org/jira/browse/CB-7896
>             Project: Apache Cordova
>          Issue Type: Test
>          Components: mobile-spec, Plugin Contacts, Windows
>            Reporter: Maria Bukharina
>
> Repo steps:
> 1. create mobile-spec app
> 2. run Plugin auto test for plugin contacts
> Expected: if method doesn't siupport pending test
> Actual: tests for "Find" and "Save" methods are failed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to