Debian Codegraph @

t/17-x2h_stylesheet.t

raw
1 package main;
2 use strict;
3 use warnings;
4
5 use Test::More tests => 1;
6
7 use XML::Hash::XS 'xml2hash';
8 $XML::Hash::XS::keep_root = 0;
9
10 {
11 is
12 xml2hash('<?xml-stylesheet href="default.css" title="Default style"?>' .
13 '<?xml-stylesheet alternate="yes" href="alt.css" title="Alternative style"?>' .
14 '<?xml-stylesheet href="single-col.css" media="all and (max-width: 30em)"?>' .
15 '<root>OK</root>'),
16 "OK",
17 'simple',
18 ;
19 }