svn: /php/php-src/trunk/ext/tidy/tests/ 010.phpt 012.phpt 024.phpt 025.phpt

From: Date: Wed, 07 Sep 2011 10:14:02 +0000
Subject: svn: /php/php-src/trunk/ext/tidy/tests/ 010.phpt 012.phpt 024.phpt 025.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-66340@lists.php.net to get a copy of this message
pajoye Wed, 07 Sep 2011 10:14:02 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=316317 Log: - force LF (svn prop and config) Changed paths: U php/php-src/trunk/ext/tidy/tests/010.phpt U php/php-src/trunk/ext/tidy/tests/012.phpt U php/php-src/trunk/ext/tidy/tests/024.phpt U php/php-src/trunk/ext/tidy/tests/025.phpt Modified: php/php-src/trunk/ext/tidy/tests/010.phpt =================================================================== --- php/php-src/trunk/ext/tidy/tests/010.phpt 2011-09-07 10:13:33 UTC (rev 316316) +++ php/php-src/trunk/ext/tidy/tests/010.phpt 2011-09-07 10:14:02 UTC (rev 316317) @@ -4,12 +4,12 @@ <?php if (!extension_loaded("tidy")) print "skip"; ?> --FILE-- <?php - $a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>"); - var_dump($a->root()); - var_dump($a->body()); - var_dump($a->html()); - var_dump($a->head()); - +$a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>", array('newline' => 'LF')); +var_dump($a->root()); +var_dump($a->body()); +var_dump($a->html()); +var_dump($a->head()); + ?> --EXPECT-- object(tidyNode)#2 (8) { Modified: php/php-src/trunk/ext/tidy/tests/012.phpt =================================================================== --- php/php-src/trunk/ext/tidy/tests/012.phpt 2011-09-07 10:13:33 UTC (rev 316316) +++ php/php-src/trunk/ext/tidy/tests/012.phpt 2011-09-07 10:14:02 UTC (rev 316317) @@ -25,7 +25,7 @@ } - $a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000><B>Hi</B><I>Bye<U>Test</U></I></BODY></HTML>"); + $a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000><B>Hi</B><I>Bye<U>Test</U></I></BODY></HTML>", array('newline' => 'LF')); $html = $a->html(); dump_nodes($html); Modified: php/php-src/trunk/ext/tidy/tests/024.phpt =================================================================== --- php/php-src/trunk/ext/tidy/tests/024.phpt 2011-09-07 10:13:33 UTC (rev 316316) +++ php/php-src/trunk/ext/tidy/tests/024.phpt 2011-09-07 10:14:02 UTC (rev 316317) @@ -18,7 +18,8 @@ </wps:block>'; $config = array( -'new-blocklevel-tags' => 'wps:block,wps:var,wps:value' +'new-blocklevel-tags' => 'wps:block,wps:var,wps:value', +'newline' => 'LF' ); $tidy = tidy_parse_string($contents, $config, 'utf8'); Modified: php/php-src/trunk/ext/tidy/tests/025.phpt =================================================================== --- php/php-src/trunk/ext/tidy/tests/025.phpt 2011-09-07 10:13:33 UTC (rev 316316) +++ php/php-src/trunk/ext/tidy/tests/025.phpt 2011-09-07 10:14:02 UTC (rev 316317) @@ -5,16 +5,16 @@ --FILE-- <?php -$tidy=tidy_parse_string('<% %>'); +$tidy=tidy_parse_string('<% %>', array('newline' => 'LF')); var_dump($tidy->Root()->child[0]->isAsp()); -$tidy=tidy_parse_string('<# #>'); +$tidy=tidy_parse_string('<# #>', array('newline' => 'LF')); var_dump($tidy->Root()->child[0]->isJste()); $tidy=tidy_parse_string('<html><body>text</body></html>'); var_dump($tidy->Root()->child[0]->child[1]->child[0]->isText()); -$tidy=tidy_parse_string('<html><body><!-- comment --></body></html>'); +$tidy=tidy_parse_string('<html><body><!-- comment --></body></html>', array('newline' => 'LF')); $n = $tidy->Root()->child[0]->child[1]->child[0]; var_dump($n->isComment()); var_dump((string)$n);

« previous php.cvs (#66340) next »