Skip to content

Commit

Permalink
minification test on multiple UI path, #1169
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Nov 27, 2019
1 parent 35fd067 commit c0158d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ function() use($web) { $web->receive(); }
'(this.id="ui-id-"+ ++a);var a=5;var b="test"+ ++a;',
'Minify tricky JS ('.round(1e3*(microtime(TRUE)-$now),1).' msecs)'
);
$f3->UI = 'ui2/,ui/';
$min=$web->minify('css/theme.css,css/simple.css',null,false);
$test->expect(
strpos($min,'html{height:100vh;')!==FALSE &&
strpos($min,'html{height:100%;')===FALSE
,'Minify from multiple UI paths');
$f3->UI = 'ui/';

foreach ($f3->split('curl,stream,socket') as $wrapper) {
if (preg_match('/curl/i',$wrapper) &&
extension_loaded('curl') ||
Expand Down

0 comments on commit c0158d0

Please sign in to comment.