X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=t%2Fpo.t;h=b6885a37e0983fb75340ec78e13934fb4fc93e53;hb=844169c9b06830df33ccde8abead015128baa496;hp=827e7c7a5ef39aa4a619676205c44791620e6e02;hpb=4e4fb18dbecf22a9eeea37f2632924f6d1ea67da;p=ikiwiki.git diff --git a/t/po.t b/t/po.t index 827e7c7a5..b6885a37e 100755 --- a/t/po.t +++ b/t/po.t @@ -64,6 +64,14 @@ foreach my $page (keys %pagesources) { $IkiWiki::pagecase{lc $page}=$page; } +### populate srcdir +writefile('index.mdwn', $config{srcdir}, '[[translatable]] [[nontranslatable]]'); +writefile('test1.mdwn', $config{srcdir}, 'test1 content'); +writefile('test2.mdwn', $config{srcdir}, 'test2 content'); +writefile('test3.mdwn', $config{srcdir}, 'test3 content'); +writefile('translatable.mdwn', $config{srcdir}, '[[nontranslatable]]'); +writefile('nontranslatable.mdwn', $config{srcdir}, '[[/]] [[translatable]]'); + ### istranslatable/istranslation # we run these tests twice because memoization attempts made them # succeed once every two tries... @@ -99,10 +107,6 @@ sub refresh_n_scan(@) { } } -writefile('index.mdwn', $config{srcdir}, '[[translatable]] [[nontranslatable]]'); -writefile('translatable.mdwn', $config{srcdir}, '[[nontranslatable]]'); -writefile('nontranslatable.mdwn', $config{srcdir}, '[[/]] [[translatable]]'); - $config{po_link_to}='negotiated'; $msgprefix="links (po_link_to=negotiated)"; refresh_n_scan('index.mdwn', 'translatable.mdwn', 'nontranslatable.mdwn');