Menu

Tree [r134] / trunk / testing / unit-tests / csst /
 History

HTTPS access


File Date Author Commit
 properties 2009-06-21 sunnybear [r120] Added unit tests for shorthands (padding / marg...
 selectors 2010-01-20 sunnybear [r123] Added font property resolving (works by default...
 shorthands 2010-03-06 sunnybear [r131] Added unit test for multiple @font-face.
 special 2010-03-26 sunnybear [r133] Added possibility to set 2 cursor properties (p...
 values 2010-03-06 sunnybear [r131] Added unit test for multiple @font-face.
 README 2008-01-05 edwardzyang [r93] Make unit tests use SimpleTest, integrate in th...

Read Me

CSST

These test are for CSSTidy's parsing algorithms. They take this form:

--TEST--
Test name
--CSS--
CSS to parse
--EXPECT--
var_export() representation of csstidy->css[41]

Note carefully that EXPECT is for csstidy->css[41], not csstidy->css. This
is because, by default, all declarations are placed inside the 
DEFAULT_AT section. For tests that need to make use of at selectors, use

--FULLEXPECT--
var_export() representation of csstidy->css

...instead.

See also: class.csstidy_csst.php (the implementation of these tests) and
test.csst.php (the caller stub for SimpleTest)