Changeset 83

Show
Ignore:
Timestamp:
12/04/09 22:10:37 (4 years ago)
Author:
clinton
Message:

Add tests for Buffer feature, tid10737 tid10892, resolves trac24

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/MANIFEST

    r81 r83  
    126126t/16-cache-compiled.t 
    127127t/htdocs/16-cache-compiled/echo-compile-time.asp 
     128t/htdocs/17-buffer/buffer-in-page.asp 
     129t/htdocs/17-buffer/buffer-via-conf.asp 
     130t/htdocs/17-buffer/late-headers.asp 
     131t/htdocs/17-buffer/late-headers-subinclude.asp 
     132t/htdocs/17-buffer/no-buffer.asp 
     133t/htdocs/17-buffer/unbuffer-override-conf.asp 
     134t/htdocs/17-buffer/late-headers-sub-stub.inc 
     135t/17-buffer.t 
  • trunk/t/conf/extra.conf.in

    r73 r83  
    2424</Location> 
    2525 
     26<LocationMatch /17-buffer/(buffer-via-conf|unbuffer-override-conf).asp> 
     27   PerlSetVar MungoBuffer 1 
     28</LocationMatch> 
  • trunk/t/lib/MungoTestUtils.pm

    r78 r83  
    8383    my %opts = %{$info->{request_options} || {}}; 
    8484 
     85    if ($info->{pre_fetch}) { 
     86        $info->{pre_fetch}->($info); 
     87    } 
     88 
    8589    my $response = GET $url, %opts; 
    8690  TODO: { 
     
    99103 
    100104    # Content Checks 
    101     my $content = $response->content(); 
     105    my $content; 
     106    if ($info->{get_content}) { 
     107        $content = $info->{get_content}->(); 
     108    } else { 
     109        $content = $response->content(); 
     110    } 
    102111    if ($info->{like}) { 
    103112        like($content, $info->{like}, "$label should have correct content");