]> granicus.if.org Git - php/commitdiff
- force LF (svn prop and config)
authorPierre Joye <pajoye@php.net>
Wed, 7 Sep 2011 10:14:18 +0000 (10:14 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 7 Sep 2011 10:14:18 +0000 (10:14 +0000)
ext/tidy/tests/010.phpt
ext/tidy/tests/012.phpt
ext/tidy/tests/024.phpt
ext/tidy/tests/025.phpt

index eabbc0391ff806ae2022c307f487f24b1cc8aae2..9d5ab825a0bd0db8c490c650edf0081ca0742284 100644 (file)
@@ -4,12 +4,12 @@ Accessing root, body, html, and head nodes..
 <?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) {
index 43fff38df589e06ed7df83ac544704bcadbc727d..1205812333e8902fa25a7b91911af391a733c06f 100644 (file)
@@ -25,7 +25,7 @@ Accessing children nodes
 
         }
 
-       $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);
             
index f69b962aee7d6b3efb2165d8024b522476168e86..b09f5b464348297dbb822995bb041cbb16a2fa23 100644 (file)
@@ -18,7 +18,8 @@ $contents = '
 </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');
index 631ec2e5e96099e7379e669dcf5577a147695ab1..df9392eb2f58e7bb85f2519f490dfb3a0fe20767 100644 (file)
@@ -5,16 +5,16 @@ tidyNode tests
 --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);