diff --git a/ChangeLog b/ChangeLog index 3e58877a..be6d0b4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-10-13 Alex Schroeder + + * wiki.pl (TextIsFile): Extract encoding from the file. + (DoDownload): Take encoding and pass it on. + (GetHttpHeader): Accept encoding parameter and add HTTP header. + (DoPost): Save gzip encoding if the file content starts with the + magic bytes. + 2011-10-12 Alex Schroeder * modules/honeypot.pl (HoneyPotInspection): New. diff --git a/t/ampersand.t b/t/ampersand.t index 1a9d1479..85b22e91 100644 --- a/t/ampersand.t +++ b/t/ampersand.t @@ -14,7 +14,7 @@ require 't/test.pl'; package OddMuse; -use Test::More tests => 32; +use Test::More tests => 38; clear_pages(); @@ -39,6 +39,16 @@ xpath_run_tests(split('\n',<<'EOT')); //a[@class="url http outside"][@href="http://example.org/"][text()="this & that"] EOT +# Seite zum Testen von Kommentaren +test_page(update_page('Änderungen', 'Veränderung'), + 'Änderungen', 'Veränderung'); +# redirect auf die richtige Seite +test_page(get_page('title=Änderungen aftertext=Öffnung'), + 'Location:', UrlEncode('Änderungen')); +# Test von Original und Kommentar +test_page(get_page('Änderungen'), + 'Veränderung', 'Öffnung'); + add_module('creole.pl'); # same test as before