X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-iri.px;h=01e1c50a8b74a8bfd7301f14624cc979911873cb;hp=662019e794a3d63ddbe02967ae8c37ba041b93c8;hb=d763f8bf6d6e13ce006ffab616cc8a77e747a633;hpb=0fa023cfffc896d72ba36a8789154630e585435a diff --git a/tests/Test-iri.px b/tests/Test-iri.px index 662019e7..01e1c50a 100755 --- a/tests/Test-iri.px +++ b/tests/Test-iri.px @@ -148,14 +148,9 @@ my %urls = ( '/p2_%C3%A9%C3%A9n.html' => { # UTF-8 encoded code => "200", msg => "Ok", - headers => { - "Content-type" => "text/html; charset=ISO-8859-1", + request_headers => { + "Referer" => qr|http://localhost:[0-9]+/p1_fran%E7ais.html|, }, - content => $pageeen, - }, - '/p2_%E9%E9n.html' => { - code => "200", - msg => "Ok", headers => { "Content-type" => "text/html; charset=ISO-8859-1", }, @@ -180,6 +175,9 @@ my %urls = ( '/p4_m%C3%A9%C3%A9r.html' => { code => "200", msg => "Ok", + request_headers => { + "Referer" => qr|http://localhost:[0-9]+/p2_%C3%A9%C3%A9n.html|, + }, headers => { "Content-type" => "text/plain; charset=UTF-8", }, @@ -187,7 +185,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " --iri --restrict-file-names=nocontrol -nH -r http://localhost:{{port}}/"; +my $cmdline = $WgetTest::WGETPATH . " -d --iri --restrict-file-names=nocontrol -nH -r http://localhost:{{port}}/"; my $expected_error_code = 0; @@ -215,9 +213,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-iri", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();