Skip to content

Commit 9568815

Browse files
committed
thing
1 parent aeb46ed commit 9568815

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

t/lib/MetaCPAN/Web/Test/HTML5/Element.pm renamed to lib/HTML5/Element.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package MetaCPAN::Web::Test::HTML5::Element;
1+
package HTML5::Element;
22
use strict;
33
use warnings;
44

55
use parent 'HTML::Element';
66

7-
use MetaCPAN::Web::Test::HTML5::Element::SVG;
8-
use constant SVG_CLASS => 'MetaCPAN::Web::Test::HTML5::Element::SVG';
7+
use HTML5::Element::SVG;
8+
use constant SVG_CLASS => 'HTML5::Element::SVG';
99

1010
sub insert_element {
1111
my ($self, $tag, @more) = @_;

t/lib/MetaCPAN/Web/Test/HTML5/Element/SVG.pm renamed to lib/HTML5/Element/SVG.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package MetaCPAN::Web::Test::HTML5::Element::SVG;
1+
package HTML5::Element::SVG;
22
use strict;
33
use warnings;
44

5-
use parent 'MetaCPAN::Web::Test::HTML5::Element';
5+
use parent 'HTML5::Element';
66

77
sub starttag_XML {
88
my $self = shift;

t/lib/MetaCPAN/Web/Test/HTML5/TreeBuilder.pm renamed to lib/HTML5/TreeBuilder.pm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
package MetaCPAN::Web::Test::HTML5::TreeBuilder;
1+
package HTML5::TreeBuilder;
22
use strict;
33
use warnings;
44

55
use parent 'HTML::TreeBuilder';
66

7-
use MetaCPAN::Web::Test::HTML5::Element::SVG (); ## no perlimports
7+
use HTML5::Element::SVG;
8+
use constant SVG_CLASS => 'HTML5::Element::SVG';
89

9-
use constant SVG_CLASS => 'MetaCPAN::Web::Test::HTML5::Element::SVG';
10-
11-
use MetaCPAN::Web::Test::HTML5::Element::MathML;
12-
use constant MATHML_CLASS => 'MetaCPAN::Web::Test::HTML5::Element::MathML';
10+
use HTML5::Element::MathML;
11+
use constant MATHML_CLASS => 'HTML5::Element::MathML';
1312

1413
my @html5_elements = qw(
1514
article audio aside bdi datalist canvas details dialog embed figcaption

t/lib/MetaCPAN/Web/Test.pm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ use warnings;
88
use HTTP::Request::Common qw( GET POST ); ## no perlimports
99
use HTTP::Message::PSGI (); ## no perlimports
1010
use Plack::Test qw( test_psgi); ## no perlimports
11+
use HTML5::TreeBuilder;
1112
use base 'Exporter';
12-
use Encode qw( decode_utf8 );
13-
use Future ();
14-
use MetaCPAN::Web::Test::HTML5::TreeBuilder ();
15-
use Test::More import => [qw( is )];
13+
use Encode qw( decode_utf8 );
14+
use Future ();
15+
use Test::More import => [qw( is )];
1616
use Test::XPath ();
1717
use Try::Tiny qw( catch try );
1818
our @EXPORT = qw(
@@ -75,8 +75,7 @@ sub tx {
7575

7676
# Text::XPath has `is_html` but the LibXML HTML parser doesn't like some html 5 (like nav).
7777
if ( delete $opts->{html} ) {
78-
$xml = MetaCPAN::Web::Test::HTML5::TreeBuilder->new_from_content($xml)
79-
->as_XML;
78+
$xml = HTML5::TreeBuilder->new_from_content($xml)->as_XML;
8079
}
8180

8281
# Upgrading some library (not sure which) in Sep/Oct 2013 started

0 commit comments

Comments
 (0)