From d28bac7032a0d95fffbba01ad7eaa6a85fd7be16 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 1 Mar 2008 09:37:45 +0000 Subject: aggiunto supporto date (data creazione deve essere scritta nel documento) git-svn-id: svn://luxion/repos/WebCoso/trunk@330 fcb26f47-9200-0410-b104-b98ab5b095f3 --- t/fcp-01.t | 6 ++++++ t/test-site-output/bar/baz/document.en.html | 4 +++- t/test-site-output/bar/baz/document.it.html | 4 +++- t/test-site-output/bar/document.en.html | 4 +++- t/test-site-output/bar/document.it.html | 4 +++- t/test-site-output/document.en.html | 4 +++- t/test-site-output/document.it.html | 4 +++- t/test-site-output/foo/document.en.html | 4 +++- t/test-site-output/foo/document.it.html | 4 +++- t/test-site-output/tags/one/document.en.html | 4 +++- t/test-site-output/tags/one/document.it.html | 4 +++- t/test-site-output/tags/three/bis/document.en.html | 4 +++- t/test-site-output/tags/three/bis/document.it.html | 4 +++- t/test-site-output/tags/three/document.en.html | 4 +++- t/test-site-output/tags/three/document.it.html | 4 +++- t/test-site-output/tags/two/document.en.html | 4 +++- t/test-site-output/tags/two/document.it.html | 4 +++- t/test-site/src/common/du2html.xsl | 8 ++++++++ t/test-site/src/document.en.rest.txt | 2 ++ t/whole-01.t | 2 +- 20 files changed, 65 insertions(+), 17 deletions(-) (limited to 't') diff --git a/t/fcp-01.t b/t/fcp-01.t index 7626cd4..2df0d8c 100644 --- a/t/fcp-01.t +++ b/t/fcp-01.t @@ -114,3 +114,9 @@ is($fc->get($wr_file->stringify), } is($fc->get('nosuchfile'),undef,'return undef on non-existant files'); + +{ + my $module_file=$base->file('lib','File','Cache','Parsed.pm'); + is($fc->stat($module_file)->size, + $module_file->stat->size,'ok stat'); +} diff --git a/t/test-site-output/bar/baz/document.en.html b/t/test-site-output/bar/baz/document.en.html index 8399519..530f7bd 100644 --- a/t/test-site-output/bar/baz/document.en.html +++ b/t/test-site-output/bar/baz/document.en.html @@ -18,4 +18,6 @@
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/bar/baz/document.it.html b/t/test-site-output/bar/baz/document.it.html index 2fb1fd5..e258865 100644 --- a/t/test-site-output/bar/baz/document.it.html +++ b/t/test-site-output/bar/baz/document.it.html @@ -16,4 +16,6 @@
Categoria 'two'
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/bar/document.en.html b/t/test-site-output/bar/document.en.html index 51ff094..ea706dd 100644 --- a/t/test-site-output/bar/document.en.html +++ b/t/test-site-output/bar/document.en.html @@ -21,4 +21,6 @@
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/bar/document.it.html b/t/test-site-output/bar/document.it.html index 9adfb7f..5ad0574 100644 --- a/t/test-site-output/bar/document.it.html +++ b/t/test-site-output/bar/document.it.html @@ -19,4 +19,6 @@
Categoria 'two'
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/document.en.html b/t/test-site-output/document.en.html index bd4b6c3..1692418 100644 --- a/t/test-site-output/document.en.html +++ b/t/test-site-output/document.en.html @@ -18,4 +18,6 @@
+
+ Creato: 2008-03-01 10:04:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/document.it.html b/t/test-site-output/document.it.html index 44dd21c..386f70a 100644 --- a/t/test-site-output/document.it.html +++ b/t/test-site-output/document.it.html @@ -15,4 +15,6 @@
Categoria 'two'
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/foo/document.en.html b/t/test-site-output/foo/document.en.html index 2fdd465..7d11fc7 100644 --- a/t/test-site-output/foo/document.en.html +++ b/t/test-site-output/foo/document.en.html @@ -18,4 +18,6 @@
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/foo/document.it.html b/t/test-site-output/foo/document.it.html index 3f59dd8..12f2016 100644 --- a/t/test-site-output/foo/document.it.html +++ b/t/test-site-output/foo/document.it.html @@ -14,4 +14,6 @@
Categoria 'two'
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/tags/one/document.en.html b/t/test-site-output/tags/one/document.en.html index 582622b..12fcba4 100644 --- a/t/test-site-output/tags/one/document.en.html +++ b/t/test-site-output/tags/one/document.en.html @@ -19,4 +19,6 @@
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/tags/one/document.it.html b/t/test-site-output/tags/one/document.it.html index aafbee7..85655e8 100644 --- a/t/test-site-output/tags/one/document.it.html +++ b/t/test-site-output/tags/one/document.it.html @@ -16,4 +16,6 @@
Categoria 'two'
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/tags/three/bis/document.en.html b/t/test-site-output/tags/three/bis/document.en.html index f352c7d..cc93ccb 100644 --- a/t/test-site-output/tags/three/bis/document.en.html +++ b/t/test-site-output/tags/three/bis/document.en.html @@ -18,4 +18,6 @@
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/tags/three/bis/document.it.html b/t/test-site-output/tags/three/bis/document.it.html index bbd498f..0e6d159 100644 --- a/t/test-site-output/tags/three/bis/document.it.html +++ b/t/test-site-output/tags/three/bis/document.it.html @@ -16,4 +16,6 @@
Categoria 'two'
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/tags/three/document.en.html b/t/test-site-output/tags/three/document.en.html index 2bc5bbe..97f482b 100644 --- a/t/test-site-output/tags/three/document.en.html +++ b/t/test-site-output/tags/three/document.en.html @@ -17,4 +17,6 @@
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/tags/three/document.it.html b/t/test-site-output/tags/three/document.it.html index a422f3b..4c225a0 100644 --- a/t/test-site-output/tags/three/document.it.html +++ b/t/test-site-output/tags/three/document.it.html @@ -15,4 +15,6 @@
Categoria 'two'
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/tags/two/document.en.html b/t/test-site-output/tags/two/document.en.html index 4bca5cb..6439ab1 100644 --- a/t/test-site-output/tags/two/document.en.html +++ b/t/test-site-output/tags/two/document.en.html @@ -18,4 +18,6 @@
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site-output/tags/two/document.it.html b/t/test-site-output/tags/two/document.it.html index eae0997..9b57700 100644 --- a/t/test-site-output/tags/two/document.it.html +++ b/t/test-site-output/tags/two/document.it.html @@ -15,4 +15,6 @@
Categoria 'two'
+
+ Creato: 1970-01-01 00:00:00 + Ultima modifica: 2008-03-01 09:23:11
diff --git a/t/test-site/src/common/du2html.xsl b/t/test-site/src/common/du2html.xsl index 291fbbf..88c70b0 100644 --- a/t/test-site/src/common/du2html.xsl +++ b/t/test-site/src/common/du2html.xsl @@ -52,10 +52,18 @@
+
+ +
+ + Creato: + Ultima modifica: + +
diff --git a/t/test-site/src/document.en.rest.txt b/t/test-site/src/document.en.rest.txt index b7449d0..d5862b4 100644 --- a/t/test-site/src/document.en.rest.txt +++ b/t/test-site/src/document.en.rest.txt @@ -1,6 +1,8 @@ =========== Main page =========== +:CreationDate: 2008-03-01 10:04:00 + * ``_ * `bar! `_ diff --git a/t/whole-01.t b/t/whole-01.t index 054d2ee..639ecc0 100644 --- a/t/whole-01.t +++ b/t/whole-01.t @@ -14,7 +14,7 @@ system($^X,qw(blib/script/webcoso.pl -s t/test-site/src/ -d t/test-site/output/ system($^X,qw(blib/script/webcoso.pl -s t/test-site/src/ -d t/test-site/output/ -I t/test-site/common/)) and die "Problems running webcoso.pl: $?\n"; -is(system(qw(diff -r -x .svn t/test-site/output/ t/test-site-output/)),0,'output as expected'); +is(system(qw(diff -r -x .svn -I),'\(Ultima modifica\|Latest change\)',qw(t/test-site/output/ t/test-site-output/)),0,'output as expected'); system($^X,qw(blib/script/webcoso.pl -s t/test-site/src/ -d t/test-site/output/ -I t/test-site/common/ --clean)) and die "Problems running webcoso.pl (clean): $?\n"; -- cgit v1.2.3