Ignore:
Timestamp:
10/22/09 03:54:35 (3 years ago)
Author:
PaulHarvey
Message:

Item2254: First attempt at making TMCE (without forced_root_block: false) and WysiwygPlugin play nice with each other

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scratch/pharvey/WysiwygPlugin/test/unit/WysiwygPlugin/WysiwygPluginTests.pm

    r4645 r5347  
    3131my $UI_FN; 
    3232 
     33# SMELL: Accomodates the temporary work-around for Item2254, for when TML2HTML 
     34#        is wrapping content in <div></div> 
     35my $Item2254start = '<div>'; 
     36my $Item2254end = '</div>'; 
     37 
    3338sub new { 
    3439    my $self = shift()->SUPER::new(@_); 
     
    164169 
    165170    $out = Encode::decode_utf8($out); 
    166  
     171     
    167172    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; 
    170175 
    171176    require Foswiki::Plugins::WysiwygPlugin::Constants; 
Note: See TracChangeset for help on using the changeset viewer.