Skip to content

Commit dd9e922

Browse files
authoredSep 5, 2023
fix(tests): Use https on file urls (#372)
1 parent 3cf3949 commit dd9e922

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎tests/tests.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ exports.defineAutoTests = function () {
554554
it(
555555
'filetransfer.spec.11 should call the error callback on abort()',
556556
function (done) {
557-
let fileURL = 'http://cordova.apache.org/static/downloads/BlueZedEx.mp3';
557+
let fileURL = 'https://cordova.apache.org/static/downloads/BlueZedEx.mp3';
558558
fileURL = fileURL + '?q=' + new Date().getTime();
559559
const specContext = this;
560560

@@ -574,7 +574,7 @@ exports.defineAutoTests = function () {
574574
it(
575575
'filetransfer.spec.9 should not leave partial file due to abort',
576576
function (done) {
577-
const fileURL = 'http://cordova.apache.org/static/downloads/logos.zip';
577+
const fileURL = 'https://cordova.apache.org/static/downloads/logos.zip';
578578
const specContext = this;
579579

580580
const fileSystemWin = function () {
@@ -622,7 +622,7 @@ exports.defineAutoTests = function () {
622622
it(
623623
'filetransfer.spec.10 should be stopped by abort()',
624624
function (done) {
625-
let fileURL = 'http://cordova.apache.org/static/downloads/BlueZedEx.mp3';
625+
let fileURL = 'https://cordova.apache.org/static/downloads/BlueZedEx.mp3';
626626
fileURL = fileURL + '?q=' + new Date().getTime();
627627
const specContext = this;
628628

@@ -760,7 +760,7 @@ exports.defineAutoTests = function () {
760760
it(
761761
'filetransfer.spec.17 progress should work with gzip encoding',
762762
function (done) {
763-
const fileURL = 'http://www.apache.org/';
763+
const fileURL = 'https://www.apache.org/';
764764
const specContext = this;
765765

766766
const downloadWin = function (entry) {
@@ -1766,7 +1766,7 @@ exports.defineAutoTests = function () {
17661766
exports.defineManualTests = function (contentEl, createActionButton) {
17671767
'use strict';
17681768

1769-
const imageURL = 'http://apache.org/images/feather-small.gif';
1769+
const imageURL = 'https://apache.org/images/feather-small.gif';
17701770
const videoURL = 'http://techslides.com/demos/sample-videos/small.mp4';
17711771

17721772
function clearResults () {

0 commit comments

Comments
 (0)
Failed to load comments.