Ignore:
Timestamp:
Nov 24, 2005, 8:12:31 PM (16 years ago)
Author:
Earle Martin
Message:

Sorry, I screwed up the last commit - tests pass now. This fixes bug #17.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/34_search_paging.t

    r716 r717  
    22use CGI::Wiki::Setup::SQLite;
    33use OpenGuides::Config;
    4 use OpenGuides::SuperSearch;
     4use OpenGuides::Search;
    55use OpenGuides::Test;
    66use Test::More;
     
    2525my $config = OpenGuides::Test->make_basic_config;
    2626$config->use_plucene( 1 );
    27 my $search = OpenGuides::SuperSearch->new( config => $config );
     27my $search = OpenGuides::Search->new( config => $config );
    2828my $guide = OpenGuides->new( config => $config );
    2929
     
    5252                                                },
    5353                             );
    54     like( $output, qr/supersearch.cgi\?.*os_x=523500.*Next.*results/s,
     54    like( $output, qr/search.cgi\?.*os_x=523500.*Next.*results/s,
    5555          "os_x retained in next page link" );
    56     like( $output, qr/supersearch.cgi\?.*os_y=177500.*Next.*results/s,
     56    like( $output, qr/search.cgi\?.*os_y=177500.*Next.*results/s,
    5757          "os_y retained in next page link" );
    58     like( $output, qr/supersearch.cgi\?.*os_dist=1500.*Next.*results/s,
     58    like( $output, qr/search.cgi\?.*os_dist=1500.*Next.*results/s,
    5959          "os_dist retained in next page link" );
    6060}
     
    6868    # in order to force it to create a fresh locator.
    6969    $config->geo_handler( 2 );
    70     my $search = OpenGuides::SuperSearch->new( config => $config );
     70    my $search = OpenGuides::Search->new( config => $config );
    7171
    7272    foreach my $i ( 1 .. 30 ) {
     
    8787                                                },
    8888                             );
    89     like( $output, qr/supersearch.cgi\?.*osie_x=100000.*Next.*results/s,
     89    like( $output, qr/search.cgi\?.*osie_x=100000.*Next.*results/s,
    9090          "osie_x retained in next page link" );
    91     like( $output, qr/supersearch.cgi\?.*osie_y=200000.*Next.*results/s,
     91    like( $output, qr/search.cgi\?.*osie_y=200000.*Next.*results/s,
    9292          "osie_y retained in next page link" );
    93     like( $output, qr/supersearch.cgi\?.*osie_dist=1500.*Next.*results/s,
     93    like( $output, qr/search.cgi\?.*osie_dist=1500.*Next.*results/s,
    9494          "osie_dist retained in next page link" );
    9595}
     
    103103    # in order to force it to create a fresh locator.
    104104    $config->geo_handler( 3 );
    105     my $search = OpenGuides::SuperSearch->new( config => $config );
     105    my $search = OpenGuides::Search->new( config => $config );
    106106
    107107    foreach my $i ( 1 .. 30 ) {
     
    122122                                                },
    123123                             );
    124     like( $output, qr/supersearch.cgi\?.*latitude=51.5.*Next.*results/s,
     124    like( $output, qr/search.cgi\?.*latitude=51.5.*Next.*results/s,
    125125          "latitude retained in next page link" );
    126     like( $output, qr/supersearch.cgi\?.*longitude=-0.12.*Next.*results/s,
     126    like( $output, qr/search.cgi\?.*longitude=-0.12.*Next.*results/s,
    127127          "longitude retained in next page link" );
    128     like( $output, qr/supersearch.cgi\?.*latlong_dist=1500.*Next.*results/s,
     128    like( $output, qr/search.cgi\?.*latlong_dist=1500.*Next.*results/s,
    129129          "latlong_dist retained in next page link" );
    130130}
Note: See TracChangeset for help on using the changeset viewer.