cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gonzalez (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-7092) [WP8][cordova-plugin-media] it gets multiple times to error callback, when an invalid file name is provided
Date Tue, 08 Jul 2014 10:44:04 GMT
Martin Gonzalez created CB-7092:
-----------------------------------

             Summary: [WP8][cordova-plugin-media] it gets multiple times to error callback,
when an invalid file name is provided
                 Key: CB-7092
                 URL: https://issues.apache.org/jira/browse/CB-7092
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Media, WP8
    Affects Versions: 3.5.0
            Reporter: Martin Gonzalez
            Assignee: Jesse MacFadyen
             Fix For: 3.6.0


When an invalid file name is provided to create a new Media object, the error callback it
goes crazy, throwing the same error multiple times and getting to the same callback multiple
times instead of one error notification or walk-through.
E.g:
badMedia = new Media("invalid.file.name", callback, errorcallack);

It gets stuck in errorcallback for some time, before move on.

Found porting mobilespec test to new plugin test framework, this behavior it was found trying
to use the error callback object to complete the test, instead of set a timeout to determine
if that callback it was called or not.

This behavior it can be only reproduced under Windows Phone 8.
Android works pretty fine, and without this issue.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message