Restructure js test

This commit is contained in:
Matthias Mullie 2024-03-15 10:21:38 +01:00
parent 531fdeef19
commit e4d9ebdc48
3 changed files with 7 additions and 7 deletions

View File

@ -1283,6 +1283,12 @@ a = \'b\';',
file_get_contents(__DIR__ . '/sample/bugs/229/minified.js'),
);
// https://github.com/matthiasmullie/minify/issues/393
$tests[] = array(
__DIR__ . '/sample/bugs/393/Decrypt.js',
file_get_contents(__DIR__ . '/sample/bugs/393/Decrypt.min.js'),
);
// https://github.com/matthiasmullie/minify/issues/231
$tests[] = array(
'var x = (2 + 2) / 2; /// =2',
@ -1385,12 +1391,6 @@ b=2',
}
}
// some other files that are minified correctly, ensure they stay like this
// https://github.com/matthiasmullie/minify/issues/393
$source = trim(file_get_contents(__DIR__ . '/sample/source/Decrypt.js'));
$minified = trim(file_get_contents(__DIR__ . '/sample/minified2/Decrypt.min.js'));
$tests[] = array($source, $minified);
return $tests;
}
}

View File

@ -85,4 +85,4 @@ return!1;return ciphers[cipher][1]}
pub.list_algorithms=function(){var ret=[];for(var i in ciphers)
ret.push(i);return ret}
pub.list_modes=function(){return['ecb','cbc','cfb','ncfb','nofb','ctr']}
var cMode='cbc';var cCipher='rijndael-128';var cKey='12345678911234567892123456789312';return pub}
var cMode='cbc';var cCipher='rijndael-128';var cKey='12345678911234567892123456789312';return pub}