Skip to content

Commit

Permalink
Add test for #163
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Mar 16, 2017
1 parent 19886d4 commit a7fc4a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/js/JSTest.php
Expand Up @@ -897,7 +897,6 @@ function otherFuncName() {
'elem.getAttribute("type")!==null)+"/"+elem.type
var rprotocol=/^\/\//,prefilters={}',
);

$tests[] = array(
'map: function( elems, callback, arg ) {
for ( i in elems ) {
Expand Down Expand Up @@ -948,6 +947,12 @@ function otherFuncName() {
return el}',
);

// https://github.com/matthiasmullie/minify/issues/163
$tests[] = array(
'q = d / 4 / b.width()',
'q=d/4/b.width()',
);

// known minified files to help doublecheck changes in places not yet
// anticipated in these tests
$files = glob(__DIR__.'/sample/minified/*.js');
Expand Down

0 comments on commit a7fc4a9

Please sign in to comment.