-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed occurence of !important without ending semicolon (if last rule) closes issue #2
- Loading branch information
Raphael Schweikert
committed
Nov 8, 2010
1 parent
1797145
commit d2a9d1c
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
require_once('CSSParser.php'); | ||
|
||
class CSSParserTests extends PHPUnit_Framework_TestCase { | ||
function testCssFiles() { | ||
|
||
$sDirectory = dirname(__FILE__).DIRECTORY_SEPARATOR.'files'; | ||
if($rHandle = opendir($sDirectory)) { | ||
/* This is the correct way to loop over the directory. */ | ||
while (false !== ($sFileName = readdir($rHandle))) { | ||
if(strpos($sFileName, '.') === 0) { | ||
continue; | ||
} | ||
if(strrpos($sFileName, '.css') !== strlen($sFileName)-strlen('.css')) { | ||
continue; | ||
} | ||
$oParser = new CSSParser(file_get_contents($sDirectory.DIRECTORY_SEPARATOR.$sFileName)); | ||
try { | ||
$oParser->parse(); | ||
} catch(Exception $e) { | ||
$this->fail($e); | ||
} | ||
} | ||
closedir($rHandle); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
div.rating-cancel,div.star-rating{float:left;width:17px;height:15px;text-indent:-999em;cursor:pointer;display:block;background:transparent;overflow:hidden} | ||
div.rating-cancel,div.rating-cancel a{background:url(images/delete.gif) no-repeat 0 -16px} | ||
div.star-rating,div.star-rating a{background:url(images/star.gif) no-repeat 0 0px} | ||
div.rating-cancel a,div.star-rating a{display:block;width:16px;height:100%;background-position:0 0px;border:0} | ||
div.star-rating-on a{background-position:0 -16px!important} | ||
div.star-rating-hover a{background-position:0 -32px} | ||
div.star-rating-readonly a{cursor:default !important} | ||
div.star-rating{background:transparent!important; overflow:hidden!important} |