[PHP-CVS] cvs: php-src /ext/dom/tests dom005.phpt

2007-07-10 Thread Dmitry Stogov
dmitry  Tue Jul 10 07:26:22 2007 UTC

  Modified files:  
/php-src/ext/dom/tests  dom005.phpt 
  Log:
  Fixed test
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/dom005.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/dom/tests/dom005.phpt
diff -u php-src/ext/dom/tests/dom005.phpt:1.5 
php-src/ext/dom/tests/dom005.phpt:1.6
--- php-src/ext/dom/tests/dom005.phpt:1.5   Sun Nov  6 10:53:39 2005
+++ php-src/ext/dom/tests/dom005.phpt   Tue Jul 10 07:26:22 2007
@@ -11,6 +11,7 @@
 print adjustDoctype($dom->saveXML());
 print  "--- save as HTML\n";
 
+$dom->formatOutput = true;
 print adjustDoctype($dom->saveHTML());
 
 function adjustDoctype($xml) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/dom/tests dom005.phpt

2005-11-06 Thread Marcus Boerger
helly   Sun Nov  6 05:53:40 2005 EDT

  Modified files:  
/php-src/ext/dom/tests  dom005.phpt 
  Log:
  - MFB Fix tests expectations
  
http://cvs.php.net/diff.php/php-src/ext/dom/tests/dom005.phpt?r1=1.4&r2=1.5&ty=u
Index: php-src/ext/dom/tests/dom005.phpt
diff -u php-src/ext/dom/tests/dom005.phpt:1.4 
php-src/ext/dom/tests/dom005.phpt:1.5
--- php-src/ext/dom/tests/dom005.phpt:1.4   Wed Aug 11 04:23:26 2004
+++ php-src/ext/dom/tests/dom005.phpt   Sun Nov  6 05:53:39 2005
@@ -14,23 +14,23 @@
 print adjustDoctype($dom->saveHTML());
 
 function adjustDoctype($xml) {
-return str_replace("DOCTYPE HTML","DOCTYPE html",$xml);
+return str_replace(array("DOCTYPE HTML",'',''),array("DOCTYPE 
html",'',''),$xml);
 }
 
 --EXPECT--
 --- save as XML
 
 http://www.w3.org/TR/REC-html40/loose.dtd";>
-Hello world
+Hello world
 This is a not well-formed
 html files with undeclared entities 
-
+
 --- save as HTML
 http://www.w3.org/TR/REC-html40/loose.dtd";>
 
 Hello world
-
+
 This is a not well-formed
 html files with undeclared entities 
-
+
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/dom/tests dom005.phpt

2004-08-11 Thread Christian Stocker
chregu  Wed Aug 11 04:23:27 2004 EDT

  Modified files:  
/php-src/ext/dom/tests  dom005.phpt 
  Log:
  fix test 
  
  
http://cvs.php.net/diff.php/php-src/ext/dom/tests/dom005.phpt?r1=1.3&r2=1.4&ty=u
Index: php-src/ext/dom/tests/dom005.phpt
diff -u php-src/ext/dom/tests/dom005.phpt:1.3 php-src/ext/dom/tests/dom005.phpt:1.4
--- php-src/ext/dom/tests/dom005.phpt:1.3   Thu Oct 30 05:06:00 2003
+++ php-src/ext/dom/tests/dom005.phpt   Wed Aug 11 04:23:26 2004
@@ -23,7 +23,7 @@
 http://www.w3.org/TR/REC-html40/loose.dtd";>
 Hello world
 This is a not well-formed
-html files with undeclared entities 
+html files with undeclared entities 
 
 --- save as HTML
 http://www.w3.org/TR/REC-html40/loose.dtd";>

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/dom/tests dom005.phpt

2003-10-30 Thread Christian Stocker
chregu  Thu Oct 30 05:06:01 2003 EDT

  Modified files:  
/php-src/ext/dom/tests  dom005.phpt 
  Log:
  make test work with libxml2 2.6.x and lower
  (I used lowercase html again in the EXPECT part, as this is now the default 
  behaviour for newer libxml2 releases)
  
  
Index: php-src/ext/dom/tests/dom005.phpt
diff -u php-src/ext/dom/tests/dom005.phpt:1.2 php-src/ext/dom/tests/dom005.phpt:1.3
--- php-src/ext/dom/tests/dom005.phpt:1.2   Wed Oct 29 00:04:40 2003
+++ php-src/ext/dom/tests/dom005.phpt   Thu Oct 30 05:06:00 2003
@@ -8,20 +8,25 @@
 $dom->loadHTMLFile(dirname(__FILE__)."/test.html");
 print  "--- save as XML\n";
 
-print $dom->saveXML();
+print adjustDoctype($dom->saveXML());
 print  "--- save as HTML\n";
 
-print $dom->saveHTML();
+print adjustDoctype($dom->saveHTML());
+
+function adjustDoctype($xml) {
+return str_replace("DOCTYPE HTML","DOCTYPE html",$xml);
+}
+
 --EXPECT--
 --- save as XML
 
-http://www.w3.org/TR/REC-html40/loose.dtd";>
+http://www.w3.org/TR/REC-html40/loose.dtd";>
 Hello world
 This is a not well-formed
 html files with undeclared entities 
 
 --- save as HTML
-http://www.w3.org/TR/REC-html40/loose.dtd";>
+http://www.w3.org/TR/REC-html40/loose.dtd";>
 
 Hello world
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/dom/tests dom005.phpt

2003-10-28 Thread Ilia Alshanetsky
iliaa   Wed Oct 29 00:04:41 2003 EDT

  Modified files:  
/php-src/ext/dom/tests  dom005.phpt 
  Log:
  Fixed test.
  
  
Index: php-src/ext/dom/tests/dom005.phpt
diff -u php-src/ext/dom/tests/dom005.phpt:1.1 php-src/ext/dom/tests/dom005.phpt:1.2
--- php-src/ext/dom/tests/dom005.phpt:1.1   Mon Oct 27 12:36:44 2003
+++ php-src/ext/dom/tests/dom005.phpt   Wed Oct 29 00:04:40 2003
@@ -15,13 +15,13 @@
 --EXPECT--
 --- save as XML
 
-http://www.w3.org/TR/REC-html40/loose.dtd";>
+http://www.w3.org/TR/REC-html40/loose.dtd";>
 Hello world
 This is a not well-formed
 html files with undeclared entities 
 
 --- save as HTML
-http://www.w3.org/TR/REC-html40/loose.dtd";>
+http://www.w3.org/TR/REC-html40/loose.dtd";>
 
 Hello world
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/dom/tests dom005.phpt test.html

2003-10-27 Thread Christian Stocker
chregu  Mon Oct 27 12:36:45 2003 EDT

  Added files: 
/php-src/ext/dom/tests  dom005.phpt test.html 
  Log:
  added html test
  

Index: php-src/ext/dom/tests/dom005.phpt
+++ php-src/ext/dom/tests/dom005.phpt
--TEST--
Test 5: HTML Test
--SKIPIF--

--FILE--
loadHTMLFile(dirname(__FILE__)."/test.html");
print  "--- save as XML\n";

print $dom->saveXML();
print  "--- save as HTML\n";

print $dom->saveHTML();
--EXPECT--
--- save as XML

http://www.w3.org/TR/REC-html40/loose.dtd";>
Hello world
This is a not well-formed
html files with undeclared entities 

--- save as HTML
http://www.w3.org/TR/REC-html40/loose.dtd";>

Hello world

This is a not well-formed
html files with undeclared entities 



Index: php-src/ext/dom/tests/test.html
+++ php-src/ext/dom/tests/test.html


Hello world


This is a not well-formed
html files with undeclared entities 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php