From ac722dd682af7c067c94c5e98703aca87a9749d1 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 25 Aug 2023 02:08:08 +0200 Subject: [PATCH] fix wrong replacements --- tests/tests.js | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/tests.js b/tests/tests.js index 5e3d9f9fd..e0b59f176 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -657,49 +657,49 @@ exports.defineManualTests = function (contentEl, createActionButton) { createActionButton( '* target=Default', function () { - doopen('https://cordova.apache.org'); + doOpen('https://cordova.apache.org'); }, 'openWhiteListed' ); createActionButton( '* target=Default (window.open)', function () { - doHookopen('https://cordova.apache.org'); + doHookOpen('https://cordova.apache.org'); }, 'openWhiteListedHook' ); createActionButton( '* target=_self', function () { - doopen('https://cordova.apache.org', '_self'); + doOpen('https://cordova.apache.org', '_self'); }, 'openWhiteListedSelf' ); createActionButton( 'target=_system', function () { - doopen('https://cordova.apache.org', '_system'); + doOpen('https://cordova.apache.org', '_system'); }, 'openWhiteListedSystem' ); createActionButton( 'target=_blank', function () { - doopen('https://cordova.apache.org', '_blank'); + doOpen('https://cordova.apache.org', '_blank'); }, 'openWhiteListedBlank' ); createActionButton( 'target=Random', function () { - doopen('https://cordova.apache.org', 'random_string'); + doOpen('https://cordova.apache.org', 'random_string'); }, 'openWhiteListedRandom' ); createActionButton( '* target=Random, no location bar', function () { - doopen('https://cordova.apache.org', 'random_string', 'location=no'); + doOpen('https://cordova.apache.org', 'random_string', 'location=no'); }, 'openWhiteListedRandomNoLocation' ); @@ -708,49 +708,49 @@ exports.defineManualTests = function (contentEl, createActionButton) { createActionButton( 'target=Default', function () { - doopen('https://www.apple.com'); + doOpen('https://www.apple.com'); }, 'openNonWhiteListed' ); createActionButton( 'target=Default (window.open)', function () { - doHookopen('https://www.apple.com'); + doHookOpen('https://www.apple.com'); }, 'openNonWhiteListedHook' ); createActionButton( 'target=_self', function () { - doopen('https://www.apple.com', '_self'); + doOpen('https://www.apple.com', '_self'); }, 'openNonWhiteListedSelf' ); createActionButton( 'target=_system', function () { - doopen('https://www.apple.com', '_system'); + doOpen('https://www.apple.com', '_system'); }, 'openNonWhiteListedSystem' ); createActionButton( 'target=_blank', function () { - doopen('https://www.apple.com', '_blank'); + doOpen('https://www.apple.com', '_blank'); }, 'openNonWhiteListedBlank' ); createActionButton( 'target=Random', function () { - doopen('https://www.apple.com', 'random_string'); + doOpen('https://www.apple.com', 'random_string'); }, 'openNonWhiteListedRandom' ); createActionButton( '* target=Random, no location bar', function () { - doopen('https://www.apple.com', 'random_string', 'location=no'); + doOpen('https://www.apple.com', 'random_string', 'location=no'); }, 'openNonWhiteListedRandomNoLocation' ); @@ -759,14 +759,14 @@ exports.defineManualTests = function (contentEl, createActionButton) { createActionButton( 'http://google.co.uk', function () { - doopen('https://google.co.uk', 'random_string', '', 1); + doOpen('https://google.co.uk', 'random_string', '', 1); }, 'openRedirect301' ); createActionButton( 'http://goo.gl/pUFqg', function () { - doopen('https://goo.gl/pUFqg', 'random_string', '', 2); + doOpen('https://goo.gl/pUFqg', 'random_string', '', 2); }, 'openRedirect302' ); @@ -775,7 +775,7 @@ exports.defineManualTests = function (contentEl, createActionButton) { createActionButton( 'Remote URL', function () { - doopen('https://www.stluciadance.com/prospectus_file/sample.pdf'); + doOpen('https://www.stluciadance.com/prospectus_file/sample.pdf'); }, 'openPDF' ); @@ -798,7 +798,7 @@ exports.defineManualTests = function (contentEl, createActionButton) { createActionButton( 'Invalid Host', function () { - doopen('https://www.inv;alid.com/', '_blank'); + doOpen('https://www.inv;alid.com/', '_blank'); }, 'openInvalidHost' ); @@ -974,21 +974,21 @@ exports.defineManualTests = function (contentEl, createActionButton) { createActionButton( 'no hardwareback (defaults to yes)', function () { - doopen('https://cordova.apache.org', '_blank'); + doOpen('https://cordova.apache.org', '_blank'); }, 'openHardwareBackDefault' ); createActionButton( 'hardwareback=yes', function () { - doopen('https://cordova.apache.org', '_blank', 'hardwareback=yes'); + doOpen('https://cordova.apache.org', '_blank', 'hardwareback=yes'); }, 'openHardwareBackYes' ); createActionButton( 'hardwareback=no', function () { - doopen('https://cordova.apache.org', '_blank', 'hardwareback=no'); + doOpen('https://cordova.apache.org', '_blank', 'hardwareback=no'); }, 'openHardwareBackNo' );