From a7fc4a98ef8f2cf38bba701b51f1a84a1d67bc5c Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Thu, 16 Mar 2017 17:42:50 +0100 Subject: [PATCH] Add test for #163 --- tests/js/JSTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/js/JSTest.php b/tests/js/JSTest.php index 93bf2bc..1aa35e7 100644 --- a/tests/js/JSTest.php +++ b/tests/js/JSTest.php @@ -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 ) { @@ -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');