diff options
author | dakkar <dakkar@thenautilus.net> | 2015-09-10 16:06:10 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2015-09-10 16:06:10 +0100 |
commit | bbe5326daa33435fc44e4f13784e126f1b040cef (patch) | |
tree | 96fe0527e3be4c9adb72efe1c4098c5d3c5a61af | |
parent | better coercion of lang for File (diff) | |
download | WebCoso-p6-bbe5326daa33435fc44e4f13784e126f1b040cef.tar.gz WebCoso-p6-bbe5326daa33435fc44e4f13784e126f1b040cef.tar.bz2 WebCoso-p6-bbe5326daa33435fc44e4f13784e126f1b040cef.zip |
test for re-builds
-rw-r--r-- | lib/WebCoso/Maker/XHTML.pm | 2 | ||||
-rw-r--r-- | t/tests/page.t | 20 |
2 files changed, 19 insertions, 3 deletions
diff --git a/lib/WebCoso/Maker/XHTML.pm b/lib/WebCoso/Maker/XHTML.pm index ea50ec5..47e2832 100644 --- a/lib/WebCoso/Maker/XHTML.pm +++ b/lib/WebCoso/Maker/XHTML.pm @@ -3,6 +3,6 @@ use WebCoso::Maker; class WebCoso::Maker::XHTML does WebCoso::Maker['du.xml','xhtml'] { method process-contents($du) { my $stylesheet = $.get-file('du2xhtml.xsl'); - return ("{$du.contents} converted",$stylesheet); + return ("{$du.contents} converted ({$stylesheet.contents})",$stylesheet); } } diff --git a/t/tests/page.t b/t/tests/page.t index 57ac1cb..62faf98 100644 --- a/t/tests/page.t +++ b/t/tests/page.t @@ -26,10 +26,26 @@ dd %output; cmp-files( %output, { - it => { $^x.contents eq 'it expanded parsed converted decorated' }, - en => { $^x.contents eq 'en parsed converted decorated' }, + it => { $^x.contents eq 'it expanded parsed converted (<>) decorated' }, + en => { $^x.contents eq 'en parsed converted (<>) decorated' }, }, 'built everyting', ); +$wc.get-file('','du2xhtml.xsl').contents('<new>'); + +%output = $wc.get-files('','document','html'); +dd %output; +dd %output<it>.contents; +dd %output<en>.contents; + +cmp-files( + %output, + { + it => { $^x.contents eq 'it expanded parsed converted (<new>) decorated' }, + en => { $^x.contents eq 'en parsed converted (<new>) decorated' }, + }, + 're-built everyting', +); + done-testing; |