source: trunk/t/61_bug_textareas.t @ 230

Last change on this file since 230 was 230, checked in by kake, 18 years ago

0.23 4 August 2003

Removed the "POST_CHOMP" option as it was messing up textareas, added
a test to make sure this doesn't reoccur.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 832 bytes
Line 
1use strict;
2use Config::Tiny;
3use Cwd;
4use OpenGuides::Template;
5use OpenGuides::Utils;
6use Test::More tests => 1;
7
8#####
9##### IMPORTANT: Treat this wiki object as read-only or we may eat live data.
10#####
11
12my $config = Config::Tiny->read( "wiki.conf" )
13    or die "Couldn't read wiki.conf";
14my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
15$config->{_}{template_path} = cwd . "/templates";
16
17my $out = OpenGuides::Template->output(
18    wiki     => $wiki,
19    config   => $config,
20    template => "edit_form.tt",
21    vars     => {
22                  locales  => [
23                                { name => "Barville" },
24                                { name => "Fooville" },
25                              ],
26                },
27);
28
29like( $out, qr/Barville\nFooville/, "locales properly separated in textarea" );
30
31
Note: See TracBrowser for help on using the repository browser.