[Po4a-commits] "po4a/t 25-xhtml.t,1.1,1.2"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sat Mar 15 01:20:04 UTC 2008


Update of /cvsroot/po4a/po4a/t
In directory alioth:/tmp/cvs-serv3993/t

Modified Files:
	25-xhtml.t 
Log Message:
* lib/Locale/Po4a/Xml.pm: Do not translate the SSI comments by 
  default (<!--#...-->). Set the f_extract and f_translate to the
  same as for regular comments.
* lib/Locale/Po4a/Xml.pm: Do not forget the # at the beginning of
  SSI comments.
* t/25-xhtml.t, t/data-25/includessi.html, t/data-25/includessi.po,
  t/data-25/includessi_normalized.html, MANIFEST: Added tests for the
includessi option.
* t/data-25/xhtml.po, t/data-25/xhtml_normalized.html: SSI
  comments are no more translated.


Index: 25-xhtml.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/25-xhtml.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- 25-xhtml.t	13 Jun 2006 20:59:15 -0000	1.1
+++ 25-xhtml.t	15 Mar 2008 01:20:00 -0000	1.2
@@ -22,9 +22,14 @@
   'test'=> "diff -u $diff_po_flags ../data-25/xhtml.po po4a-normalize.po".
             "&& diff -u $diff_po_flags ../data-25/xhtml_normalized.html po4a-normalize.output",
   'doc' => 'normalisation test',
+  }, {
+  'run' => 'perl ../../po4a-normalize -f xhtml -o includessi ../data-25/includessi.html',
+  'test'=> "diff -u $diff_po_flags ../data-25/includessi.po po4a-normalize.po".
+            "&& diff -u $diff_po_flags ../data-25/includessi_normalized.html po4a-normalize.output",
+  'doc' => 'includessi test',
   };
 
-use Test::More tests => 4;
+use Test::More tests => 6;
 
 chdir "t/tmp" || die "Can't chdir to my test directory";
 




More information about the Po4a-commits mailing list