Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests): Use https on file urls #372

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ exports.defineAutoTests = function () {
it(
'filetransfer.spec.11 should call the error callback on abort()',
function (done) {
let fileURL = 'http://cordova.apache.org/static/downloads/BlueZedEx.mp3';
let fileURL = 'https://cordova.apache.org/static/downloads/BlueZedEx.mp3';
fileURL = fileURL + '?q=' + new Date().getTime();
const specContext = this;

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

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

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

const downloadWin = function (entry) {
Expand Down Expand Up @@ -1766,7 +1766,7 @@ exports.defineAutoTests = function () {
exports.defineManualTests = function (contentEl, createActionButton) {
'use strict';

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

function clearResults () {
Expand Down
Loading