cvs: pear /HTML_CSS/tests HTML_CSS_TestCase_bug1084.php

From: Date: Fri, 21 May 2004 16:43:59 +0000
Subject: cvs: pear /HTML_CSS/tests HTML_CSS_TestCase_bug1084.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-19740@lists.php.net to get a copy of this message
thesaur Fri May 21 12:43:59 2004 EDT Modified files: /pear/HTML_CSS/tests HTML_CSS_TestCase_bug1084.php Log: Added additional tests to ensure no parseSelectors breakage http://cvs.php.net/diff.php/pear/HTML_CSS/tests/HTML_CSS_TestCase_bug1084.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_CSS/tests/HTML_CSS_TestCase_bug1084.php diff -u pear/HTML_CSS/tests/HTML_CSS_TestCase_bug1084.php:1.1 pear/HTML_CSS/tests/HTML_CSS_TestCase_bug1084.php:1.2 --- pear/HTML_CSS/tests/HTML_CSS_TestCase_bug1084.php:1.1 Fri May 21 08:07:02 2004 +++ pear/HTML_CSS/tests/HTML_CSS_TestCase_bug1084.php Fri May 21 12:43:59 2004 @@ -2,7 +2,7 @@ /** * API Unit tests for HTML_CSS package. * - * @version $Id: HTML_CSS_TestCase_bug1084.php,v 1.1 2004/05/21 12:07:02 farell Exp $ + * @version $Id: HTML_CSS_TestCase_bug1084.php,v 1.2 2004/05/21 16:43:59 thesaur Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_CSS */ @@ -123,6 +123,26 @@ } $this->_getResult(); + + $sd = 'a#heading.icon:active'; + $d = $this->stylesheet->parseSelectors($sd); + if ($d != $sd) { + $this->raiseError(1084,'error', + array('selector' => $sd), + 'parseSelectors does not correctly parse selector structure "%selector%"'); + + } + $this->_getResult(); + + $se = '#heading'; + $e = $this->stylesheet->parseSelectors($se); + if ($e != $se) { + $this->raiseError(1084,'error', + array('selector' => $se), + 'parseSelectors does not correctly parse selector structure "%selector%"'); + + } + $this->_getResult(); } } ?>

« previous php.pear.cvs (#19740) next »