Changeset 5347 for branches/scratch/pharvey/WysiwygPlugin/test/unit/WysiwygPlugin/WysiwygPluginTests.pm
- Timestamp:
- 10/22/09 03:54:35 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scratch/pharvey/WysiwygPlugin/test/unit/WysiwygPlugin/WysiwygPluginTests.pm
r4645 r5347 31 31 my $UI_FN; 32 32 33 # SMELL: Accomodates the temporary work-around for Item2254, for when TML2HTML 34 # is wrapping content in <div></div> 35 my $Item2254start = '<div>'; 36 my $Item2254end = '</div>'; 37 33 38 sub new { 34 39 my $self = shift()->SUPER::new(@_); … … 164 169 165 170 $out = Encode::decode_utf8($out); 166 171 167 172 my $id = "<!--$Foswiki::Plugins::WysiwygPlugin::SECRET_ID-->"; 168 $this->assert( $out =~ s/^\s*$id <p>\s*//s, anal($out) );169 $out =~ s/\s*<\/p> \s*$//s;173 $this->assert( $out =~ s/^\s*$id$Item2254start<p>\s*//s, anal($out) ); 174 $out =~ s/\s*<\/p>$Item2254end\s*$//s; 170 175 171 176 require Foswiki::Plugins::WysiwygPlugin::Constants;
Note: See TracChangeset
for help on using the changeset viewer.
