7 use lib "$FindBin::Bin/lib";
\r
9 use Test::More tests => 6;
\r
10 use Catalyst::Test 'TestApp';
\r
12 # phaylon noticed that refactored was truncating output on large images.
\r
13 # This test tests 100K and 1M output content.
\r
16 one => 'x' x (100 * 1024),
\r
17 two => 'y' x (1024 * 1024),
\r
20 for my $action ( keys %{$expected} ) {
\r
21 ok( my $response = request('http://localhost/engine/response/large/' . $action ),
\r
23 ok( $response->is_success, 'Response Successful 2xx' );
\r
25 is( length( $response->content ), length( $expected->{$action} ), 'Length OK' );
\r