NAME
Test::HTML::Differences - Compare two html and show differences if it is
not ok
SYNOPSIS
use Test::Base -Base;
use Test::HTML::Differences;
plan tests => 1 * blocks;
run {
my ($block) = @_;
eq_or_diff_html(
$block->input,
$block->expected,
$block->name
);
};
__END__
=== test
--- input
--- expected
DESCRIPTION
Test::HTML::Differences is test utility that compares two strings as
HTML and show differences with Test::Differences.
Supplied HTML strings are normalized and show pretty formatted as it is
shown.
This module does not test all HTML node strictly, leading/trailing
white-space characters that are removed by the normalize function, but
do test whole structures of the HTML.
For example:
foo
is called equal to following:
foo
You must test these case by other methods, for example, old-school like
or is function as you want to test it.
AUTHOR
cho45
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.