aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/BrowserTestExtension/tests/inputvalues.js
diff options
context:
space:
mode:
Diffstat (limited to 'lang/js/BrowserTestExtension/tests/inputvalues.js')
-rw-r--r--lang/js/BrowserTestExtension/tests/inputvalues.js25
1 files changed, 3 insertions, 22 deletions
diff --git a/lang/js/BrowserTestExtension/tests/inputvalues.js b/lang/js/BrowserTestExtension/tests/inputvalues.js
index 5289eab7..9d956b69 100644
--- a/lang/js/BrowserTestExtension/tests/inputvalues.js
+++ b/lang/js/BrowserTestExtension/tests/inputvalues.js
@@ -86,7 +86,9 @@ const inputvalues = {// eslint-disable-line no-unused-vars
'T2JfzEN+E7Y3PB8UwLgp/ZRmG8zRrQ==\n' +
'=ioB6\n' +
'-----END PGP SIGNATURE-----\n',
- }
+ },
+
+ someInputParameter: 'bad string'
};
// (Pseudo-)Random String covering all of utf8.
@@ -158,27 +160,6 @@ function slightlyLessBoringString(megabytes, set){
return string.join('');
}
-// Take a gpg looking string and destroy it a bit by changing random values
-// eslint-disable-next-line no-unused-vars
-function destroylegitimateGpg(string, mutations=5){
- const allowed = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/\n';
- for (let i=0; i < mutations.length; i++){
- // leave the first and last 35 chars (header/footer) intact
- let position = Math.floor(Math.random() *(string.length - 70)) + 35;
- let str0 = string.substring(0,position - 1);
- let str1 = string.substring(position, position + 1);
- let str2 = string.substring(position +1);
- let success = false;
- while (!success){
- let newchar = Math.floor(Math.random() * allowed.length);
- if (newchar !== str1){
- string = str0 + newchar + str2;
- success = true;
- }
- }
- }
-}
-
// Data encrypted with testKey
const encryptedData =// eslint-disable-line no-unused-vars
'-----BEGIN PGP MESSAGE-----\n' +