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

Media plugin test failures on Android (spec.20 and spec.21)

VotersStop watchingWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Sometimes the returned value of media.getCurrentPosition() is not an integer:

          cordova-plugin-media-tests.tests >> Media actual playback media.spec.20 should be able to resume playback after pause
              Expected 20.323 to be 20.
                  Error: Expected 20.323 to be 20.
                      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 file:///android_asset/www/plugins/cordova-plugin-media-tests/tests.js:284:46
                      at file:///android_asset/www/plugins/cordova-plugin-media/www/Media.js:123:9
                      at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:293:58)
                      at processMessage (file:///android_asset/www/cordova.js:1081:17)
          cordova-plugin-media-tests.tests >> Media actual playback media.spec.21 should be able to seek through file
              Expected 5.146 to be 5.
                  Error: Expected 5.146 to be 5.
                      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 file:///android_asset/www/plugins/cordova-plugin-media-tests/tests.js:316:50
                      at file:///android_asset/www/plugins/cordova-plugin-media/www/Media.js:123:9
                      at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:293:58)
                      at processMessage (file:///android_asset/www/cordova.js:1081:17)
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment