mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-01-17 20:58:26 +01:00
Restructure js test
This commit is contained in:
parent
531fdeef19
commit
e4d9ebdc48
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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}
|
Loading…
x
Reference in New Issue
Block a user