|
#!/usr/bin/perl -w
use WMTest; webmake_t_init( "ettextlinks" ); use Test; BEGIN { plan tests => 43 }; %patterns = (
q{<h1>LINKS TEST</h1>} ,
'header' ,
q{<p> This is a test of a single-word
'1word' ,
'1wordtext' ,
'multiword' ,
q{multi-word link test</a>. </p> <p> As you can see,} ,
'linklistsnoemptypara' ,
q{no whitespace is used in
'1wordnows' ,
'glossary' ,
'onewordgloslink' ,
q{even if they were defined
'definedabove' ,
traditional a hrefs</a>.} ,
'tradhref' ,
q{tags with embedded quotes should be OK too, even
'linkimg' ,
'linktextandimg' ,
q{hrefs on images should be OK too, like this: <a
'tradhrefimg' ,
q{That's it. Oh, one more -- since "test_requires_this_warning" has not be
defined as a link label, test_requires_this_warning is not a link } ,
'notlink1' ,
q{<p> This should be a link: <a
'httpurl' ,
q{Also <a
'httpurlnoslash' ,
q{with URL: <a
} , 'URLurl' ,
q{<p> Test links containing colons. an EtLink: <a
'etlinkwithcolon' ,
'tradlinkwithcolon' ,
'links_with_url_header' ,
q{Links follows by non-link chars:
(blah blah
'links_followed_by_non_link_chars' ,
);
ok (wmrun ( "-F -f data/$testname.wmk" , \ &patterns_run_cb ));
ok_all_patterns();
|