Ignore:
Timestamp:
Mar 24, 2007, 3:25:40 PM (15 years ago)
Author:
kake
Message:

Apply content_above_navbar_in_html content option to Recent Changes page as well; and add a CSS ID for the atom/RSS feeds paragraph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/47_navbar_placement.t

    r964 r969  
    1717}
    1818
    19 plan tests => 9;
     19plan tests => 12;
    2020
    2121# NB These tests don't actually test the placement - but they do test that
     
    126126                         "...ditto if content_above_navbar_in_html set to 1" );
    127127
     128# Make sure navbar appears on recent changes.
     129$config = OpenGuides::Test->make_basic_config; # get a fresh config
     130$guide = OpenGuides->new( config => $config ); # make sure the guide sees it
     131$output = $guide->display_recent_changes(
     132                                          return_output => 1,
     133                                        );
     134$output =~ s/^Content-Type.*[\r\n]+//m;
     135Test::HTML::Content::tag_ok( $output, "div", { id => "navbar" },
     136                             "navbar appears on recent changes" );
     137
     138$config->content_above_navbar_in_html( 0 );
     139$output = $guide->display_recent_changes(
     140                                          return_output => 1,
     141                                        );
     142$output =~ s/^Content-Type.*[\r\n]+//m;
     143Test::HTML::Content::tag_ok( $output, "div", { id => "navbar" },
     144                         "...ditto if content_above_navbar_in_html set to 0" );
     145
     146$config->content_above_navbar_in_html( 1 );
     147$output = $guide->display_recent_changes(
     148                                          return_output => 1,
     149                                        );
     150$output =~ s/^Content-Type.*[\r\n]+//m;
     151Test::HTML::Content::tag_ok( $output, "div", { id => "navbar" },
     152                         "...ditto if content_above_navbar_in_html set to 1" );
     153
Note: See TracChangeset for help on using the changeset viewer.