Ignore:
Timestamp:
08/10/09 14:00:38 (3 years ago)
Author:
MichaelTempest
Message:

Item1770: Add a unit test for nested custom XML tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WysiwygPlugin/test/unit/WysiwygPlugin/ExtendedTranslatorTests.pm

    r4295 r4638  
    164164<customtag with="attributes"> 
    165165  formatting >  preserved 
     166</customtag> 
     167BLAH 
     168    }, 
     169    { 
     170        exec  => $TML2HTML | $ROUNDTRIP, 
     171        name  => 'NestedCustomXmlTagWithAttributes', 
     172        setup => sub { 
     173            Foswiki::Plugins::WysiwygPlugin::addXMLTag( 'customtag', 
     174                sub { 1 } ); 
     175        }, 
     176        html => '<p>' 
     177          . $protecton 
     178          . '&lt;customtag&gt;<br />&nbsp;&nbsp;formatting&nbsp;&gt;&nbsp;&nbsp;preserved<br />' 
     179          . '&nbsp;&nbsp;&nbsp;&nbsp;&lt;customtag&gt;<br />' 
     180          . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;banana&nbsp;&lt;&nbsp;cheese&nbsp;&lt;&lt;&nbsp;Elephant;<br />' 
     181          . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this&amp;that<br />' 
     182          . '&nbsp;&nbsp;&nbsp;&nbsp;&lt;/customtag&gt;<br />' 
     183          . '&lt;/customtag&gt;' 
     184          . $protectoff . '</p>', 
     185        tml => <<BLAH, 
     186<customtag> 
     187  formatting >  preserved 
     188    <customtag> 
     189        banana < cheese << Elephant; 
     190        this&that 
     191    </customtag> 
    166192</customtag> 
    167193BLAH 
Note: See TracChangeset for help on using the changeset viewer.