- Timestamp:
- 10/18/08 19:19:22 (3 months ago)
- Location:
- trunk/t
- Files:
-
- 2 modified
-
21_rdf.t (modified) (3 diffs)
-
68_bug_website_displayed.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/21_rdf.t
r1168 r1231 55 55 locales => "Bloomsbury\r\nSt Pancras", 56 56 phone => "test phone number", 57 website => " test website",57 website => "http://example.com", 58 58 hours_text => "test hours", 59 59 latitude => "51.524193", … … 71 71 locales => "Bloomsbury\r\nSt Pancras", 72 72 phone => "test phone number", 73 website => " test website",73 website => "http://example.com", 74 74 hours_text => "test hours", 75 75 latitude => "51.524193", … … 96 96 "picks up opening hours text" ); 97 97 98 like( $rdfxml, qr|<foaf:homepage rdf:resource=" test website" />|, "picks up website" );98 like( $rdfxml, qr|<foaf:homepage rdf:resource="http://example.com" />|, "picks up website" ); 99 99 100 100 like( $rdfxml, -
trunk/t/68_bug_website_displayed.t
r956 r1231 11 11 } 12 12 13 plan tests => 1;13 plan tests => 2; 14 14 15 15 Wiki::Toolkit::Setup::SQLite::cleardb( { dbname => "t/node.db" } ); … … 18 18 my $guide = OpenGuides->new( config => $config ); 19 19 20 $guide->wiki->write_node( "South Croydon Station", "A sleepy main-line station in what is arguably the nicest part of Croydon.", undef, { website => "http://www.example.com/" } ) or die "Couldn't write node"; 20 $guide->wiki->write_node( "South Croydon Station", "A sleepy main-line station in what is arguably the nicest part of Croydon.", undef, { website => "http://example.com/" } ) or die "Couldn't write node"; 21 $guide->wiki->write_node( "North Croydon Station", "A busy main-line station in what is arguably the furthest North part of Croydon.", undef, { website => "http://longer.example.com/asdfasdf" } ) or die "Couldn't write node"; 21 22 22 23 my $output = $guide->display_node( … … 24 25 return_output => 1, 25 26 ); 26 like( $output, qr#Website:</span> <span class="url"><a href="http:// www.example.com/">http://www.example.com/</a>#, "website correctly displayed" );27 like( $output, qr#Website:</span> <span class="url"><a href="http://example.com/">http://example.com/</a>#, "website correctly displayed" ); 27 28 29 $output = $guide->display_node( 30 id => "North Croydon Station", 31 return_output => 1, 32 ); 33 34 like( $output, qr#Website:</span> <span class="url"><a href="http://longer.example.com/asdfasdf">http://longer.exampl...</a>#, "website correctly truncated" );
