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/TranslatorTests.pm

    r5310 r5347  
    4141my $CANNOTWYSIWYG = 1 << 3;    # test that notWysiwygEditable returns true 
    4242                               #   and make the ROUNDTRIP test expect failure 
     43 
     44# SMELL: Accomodates the temporary work-around for Item2254, for when TML2HTML 
     45#        is wrapping content in <div></div> 
     46my $Item2254start = '<div>'; 
     47my $Item2254end = '</div>'; 
    4348 
    4449# Note: ROUNDTRIP is *not* the same as the combination of 
     
    21612166        $this->TML_HTMLconverterOptions() 
    21622167    ); 
     2168     
     2169    # SMELL: Item2254 temporary work-around requires TML2HTML to wrap output 
     2170    # in <div></div>. 
     2171    if (($Item2254start) and ($Item2254end)) { 
     2172      $tx = ($tx =~ /^$Item2254start(.*)$Item2254end$/mxs)[0]; 
     2173    } 
    21632174 
    21642175    $this->assert_html_equals( $html, $tx ); 
Note: See TracChangeset for help on using the changeset viewer.