Changeset 720


Ignore:
Timestamp:
Nov 29, 2005, 7:09:54 AM (16 years ago)
Author:
Earle Martin
Message:

finish fixing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/21_rdf.t

    r719 r720  
    1313SKIP: {
    1414    skip "DBD::SQLite not installed - no database to test with", 24
    15       unless $have_sqlite;
     15        unless $have_sqlite;
    1616
    1717    CGI::Wiki::Setup::SQLite::setup( { dbname => "t/node.db" } );
     
    6868
    6969    like( $rdfxml, qr|<foaf:name>Bloomsbury</foaf:name>|,
    70       "finds the first locale" );
     70        "finds the first locale" );
    7171    like( $rdfxml, qr|<foaf:name>St Pancras</foaf:name>|,
    72          "finds the second locale" );
     72        "finds the second locale" );
    7373
    7474    like( $rdfxml, qr|<phone>test phone number</phone>|,
    75       "picks up phone number" );
     75        "picks up phone number" );
    7676
    7777    like( $rdfxml, qr|<chefmoz:Hours>test hours</chefmoz:Hours>|,
    78       "picks up opening hours text" );
     78        "picks up opening hours text" );
    7979
    8080    like( $rdfxml, qr|<foaf:homepage rdf:resource="test website" />|, "picks up website" );
    8181
    8282    like( $rdfxml,
    83       qr|<dc:title>CGI::Wiki Test Site: Calthorpe Arms</dc:title>|,
    84       "sets the title correctly" );
     83        qr|<dc:title>CGI::Wiki Test Site: Calthorpe Arms</dc:title>|,
     84        "sets the title correctly" );
    8585
    8686    like( $rdfxml, qr|<dc:contributor>Kake</dc:contributor>|,
    87       "last username to edit used as contributor" );
     87        "last username to edit used as contributor" );
    8888
    8989    like( $rdfxml, qr|<wiki:version>1</wiki:version>|, "version picked up" );
    9090
    91     like( $rdfxml, qr|<rdf:Description rdf:about="">|,
    92           "sets the 'about' correctly" );
     91    like( $rdfxml, qr|<rdf:Description rdf:about="">|, "sets the 'about' correctly" );
    9392
    9493    like( $rdfxml, qr|<dc:source rdf:resource="http://wiki.example.com/mywiki.cgi\?Calthorpe_Arms" />|,
    95       "set the dc:source with the version-independent uri" );
     94        "set the dc:source with the version-independent uri" );
    9695
    9796    like( $rdfxml, qr|<country>United Kingdom</country>|, "country" ).
     
    111110    my $guide = OpenGuides->new( config => $config );
    112111    OpenGuides::Test->write_data(
    113                                   guide => $guide,
    114                                   node  => "Star Tavern",
    115                                   latitude => 51.498,
    116                                   longitude => -0.154,
     112                                    guide => $guide,
     113                                    node  => "Star Tavern",
     114                                    latitude => 51.498,
     115                                    longitude => -0.154,
    117116                                );
    118117    $rdf_writer = OpenGuides::RDF->new( wiki => $guide->wiki, config => $config );
     
    123122    # Now test that there's a nice failsafe where a node doesn't exist.
    124123    $rdfxml = eval { $rdf_writer->emit_rdfxml( node => "I Do Not Exist" ); };
    125     is( $@, "",
    126         "->emit_rdfxml doesn't die when called on a nonexistent node" );
     124    is( $@, "", "->emit_rdfxml doesn't die when called on a nonexistent node" );
    127125
    128     like( $rdfxml, qr|<wiki:version>0</wiki:version>|,
    129           "...and wiki:version is 0" );
     126    like( $rdfxml, qr|<wiki:version>0</wiki:version>|, "...and wiki:version is 0" );
    130127
    131128    # Test the data for a node that redirects.
     
    142139
    143140    like( $redirect_rdf, qr|<owl:sameAs rdf:resource="/\?id=Calthorpe_Arms;format=rdf#obj" />|,
    144       "redirecting node gets owl:sameAs to target" );
     141        "redirecting node gets owl:sameAs to target" );
    145142
    146143}
Note: See TracChangeset for help on using the changeset viewer.