jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

2.1.2 and !FAIL: Minify_CSS : paths #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Minify version: 2.1.2
PHP version: 5.2.6

What steps will reproduce the problem?
1. run min_unit_tests/test_Minify_CSS.php
2. look at Minify_CSS : paths 

!FAIL: Minify_CSS : paths (1 of 3 tests run so far have failed)

---Output: 414 bytes

@import "foo.css";@import 'bar/foo.css' print;@import
'/css/foo.css';@import 'http://foo.com/css/foo.css';@import url(../foo.css)
tv, projection;@import url("/css/foo.css");@import
url(/css2/foo.css);@import
url(data:image/gif;base64,AAAA);foo{background:url('bar/foo.png')}foo{background
:url('http://foo.com/css/foo.css')}foo{background:url("//foo.com/css/foo.css")}f
oo{background:url(data:image/gif;base64,AAAA)}

---Expected: 426 bytes

@import "../foo.css";@import '../bar/foo.css' print;@import
'/css/foo.css';@import 'http://foo.com/css/foo.css';@import
url(../../foo.css) tv, projection;@import url("/css/foo.css");@import
url(/css2/foo.css);@import
url(data:image/gif;base64,AAAA);foo{background:url('../bar/foo.png')}foo{backgro
und:url('http://foo.com/css/foo.css')}foo{background:url("//foo.com/css/foo.css"
)}foo{background:url(data:image/gif;base64,AAAA)}

Did any unit tests FAIL?
yes, but only this, everything other was 'PASS'

Original issue reported on code.google.com by SmallPar...@gmail.com on 2 Mar 2009 at 2:00

GoogleCodeExporter commented 9 years ago
it was on linux server, on my localhost (on windows) any fails, everything ok

Original comment by SmallPar...@gmail.com on 2 Mar 2009 at 2:09

Attachments:

GoogleCodeExporter commented 9 years ago
hmmm.. i set output_buffering (in php.ini) to ON and any fails on linux server

Original comment by SmallPar...@gmail.com on 2 Mar 2009 at 3:08

GoogleCodeExporter commented 9 years ago
What does "any fails" mean? 
Path rewriting depends on server environment settings; please give me the 
output of 
this (but I can't guarantee it will help me):

<?php
echo $_SERVER['DOCUMENT_ROOT'], '<br>',
     realpath($_SERVER['DOCUMENT_ROOT']), '<br>',
     __FILE__;

Original comment by mrclay....@gmail.com on 2 Mar 2009 at 1:56

GoogleCodeExporter commented 9 years ago
Sorry for my english, writing 'any fails' I mean that's minify pass all tests 
and
working properly.

I have wrong vesrion minify, now everything is ok. Great script! Please 
close/delete
this issue. 

Reagrds

Original comment by SmallPar...@gmail.com on 5 Mar 2009 at 10:53

GoogleCodeExporter commented 9 years ago
No problem.

Original comment by mrclay....@gmail.com on 5 Mar 2009 at 12:57