Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9579

contacts.spec.24 fails if there is already "DeleteMe" contact(s) present on device

    XMLWordPrintableJSON

Details

    Description

      1. Create a contact with "DeleteMe" name
      2. Run contacts tests

          cordova-plugin-contacts-tests.tests >> Contacts (navigator.contacts) Round trip Contact tests (creating + save + delete + find). contacts.spec.24 Creating, saving, finding a contact should work, removing it should work, after which we should not be able to find it, and we should not be able to delete it again.
              Expected 3 to be 1.
                  Error: Expected 3 to be 1.
                      at stack (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1455:17)
                      at buildExpectationResult (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1425:14)
                      at Spec.Env.expectationResultFactory (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:572:18)
                      at Spec.addExpectationResult (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:321:34)
                      at Expectation.addExpectationResult (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:516:21)
                      at Expectation.toBe (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1379:12)
                      at findWin (file:///android_asset/www/plugins/cordova-plugin-contacts-tests/tests.js:394:41)
                      at win (file:///android_asset/www/plugins/cordova-plugin-contacts/www/contacts.js:56:17)
                      at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:293:58)
                      at processMessage (file:///android_asset/www/cordova.js:1081:17)
              Expected 2 to be 0.
                  Error: Expected 2 to be 0.
                      at stack (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1455:17)
                      at buildExpectationResult (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1425:14)
                      at Spec.Env.expectationResultFactory (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:572:18)
                      at Spec.addExpectationResult (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:321:34)
                      at Expectation.addExpectationResult (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:516:21)
                      at Expectation.toBe (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1379:12)
                      at findWinAgain (file:///android_asset/www/plugins/cordova-plugin-contacts-tests/tests.js:399:51)
                      at win (file:///android_asset/www/plugins/cordova-plugin-contacts/www/contacts.js:56:17)
                      at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:293:58)
                      at processMessage (file:///android_asset/www/cordova.js:1081:17)
      

      Attachments

        Activity

          People

            alsorokin Alexander Sorokin
            alsorokin Alexander Sorokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: