The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
|
use lib qw( ./lib ../lib ) ; plan( tests => 1);
my $html_path = "$Bin/html/" ;
my $result_file = $html_path . 'embedded_style_result.html' ;
open ( my $fh , $result_file ) or die "can't open $result_file: $!!\n" ;
my $correct_result = do { local ( $/ ) ; < $fh > } ;
my $inliner = CSS::Inliner->new();
$inliner ->fetch_file({ url => $test_url });
my $inlined = $inliner ->inlinify();
ok( $inlined eq $correct_result , 'result was correct' );
|