mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
53 lines
No EOL
1.1 KiB
PHP
53 lines
No EOL
1.1 KiB
PHP
<?php
|
|
require('css_results.php');
|
|
require('../class.csstidy.php');
|
|
ini_set('display_errors','On');
|
|
|
|
$css = new csstidy();
|
|
|
|
$css->set_cfg('preserve_css',false);
|
|
$css_code = file_get_contents('fisubsilver.css');
|
|
|
|
$css->parse($css_code);
|
|
|
|
if($css->css === $xhtml_result) {
|
|
echo '<div style="color:green">XHTML OK!</div>';
|
|
} else {
|
|
echo '<div style="color:red">XHTML failed!</div>';
|
|
}
|
|
flush();
|
|
|
|
$css_code = file_get_contents('base.css');
|
|
|
|
$css->parse($css_code);
|
|
|
|
if($css->css === $ala_result) {
|
|
echo '<div style="color:green">ALA OK!</div>';
|
|
} else {
|
|
echo '<div style="color:red">ALA failed!</div>';
|
|
}
|
|
flush();
|
|
|
|
$css->set_cfg('remove_last_;',true);
|
|
|
|
if($css->print->formatted() === $ala_html) {
|
|
echo '<div style="color:green">ALA HTML OK!</div>';
|
|
} else {
|
|
echo '<div style="color:red">ALA HTML failed!</div>';
|
|
}
|
|
flush();
|
|
|
|
$css->set_cfg('optimise_shorthands',false);
|
|
$css->set_cfg('merge_selectors',1);
|
|
|
|
$css->parse($css_code);
|
|
|
|
if($css->css === $ala_options_result) {
|
|
echo '<div style="color:green">ALA +options OK!</div>';
|
|
} else {
|
|
echo '<div style="color:red">ALA +options failed!</div>';
|
|
}
|
|
flush();
|
|
|
|
|
|
?>
|