CB-9843 Added wp8 quirk to test spec 12

github: close #106
This commit is contained in:
Alexander Sorokin
2015-10-27 13:51:47 +03:00
committed by daserge
parent 65d28795a6
commit 4dc697a863
+8 -1
View File
@@ -49,6 +49,7 @@ exports.defineAutoTests = function () {
var isBrowser = cordova.platformId === 'browser';
var isIE = isBrowser && navigator.userAgent.indexOf('Trident') >= 0;
var isWp8 = cordova.platformId === "windowsphone";
describe('FileTransferError', function () {
@@ -504,7 +505,13 @@ exports.defineAutoTests = function () {
expect(error.http_status).not.toBe(401, "Ensure " + fileURL + " is in the white list");
expect(error.http_status).toBe(404);
expect(error.code).toBe(FileTransferError.FILE_NOT_FOUND_ERR);
// wp8 does not make difference between 404 and unknown host
if (isWp8) {
expect(error.code).toBe(FileTransferError.CONNECTION_ERR);
} else {
expect(error.code).toBe(FileTransferError.FILE_NOT_FOUND_ERR);
}
done();
};