Skip to content

Commit

Permalink
Add a test for inline behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jul 24, 2023
1 parent 21989c8 commit 231d43d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/51media/04inline.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
my $content_id;

# This test ensures an uploaded file may optionally be rendered inline
# in the browser. This is checked in get_media

sub test_using_client
{
my ( $client ) = @_;
}

test "Can download a file that optionally inlines",
requires => [ $main::API_CLIENTS[0] ],

check => sub {
my ( $http ) = @_;
upload_test_content( $user, {} , "text/plain")->then( sub {
( $content_id ) = @_;
get_media( $http, $content_id, 1 )->then( sub {
Future->done(1);
})
});
};

0 comments on commit 231d43d

Please sign in to comment.