mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
CB-6900 fixed spec.7 for wp8
Test needs to check for x-wmapp0:/ instead of file:/ in case of wp
This commit is contained in:
+4
-1
@@ -245,7 +245,10 @@ exports.defineAutoTests = function () {
|
|||||||
var lastProgressEvent = null;
|
var lastProgressEvent = null;
|
||||||
|
|
||||||
if (!/^file/.exec(remoteFile) && cordova.platformId !== 'blackberry10') {
|
if (!/^file/.exec(remoteFile) && cordova.platformId !== 'blackberry10') {
|
||||||
expect(remoteFile).toMatch(/^file:/);
|
if (cordova.platformId !== 'windowsphone')
|
||||||
|
expect(remoteFile).toMatch(/^file:/);
|
||||||
|
else
|
||||||
|
expect(remoteFile).toMatch(/^x-wmapp0:/);
|
||||||
done();
|
done();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user