- Timestamp:
- 06/24/09 21:13:57 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WysiwygPlugin/test/unit/WysiwygPlugin/ExtendedTranslatorTests.pm
r4294 r4295 117 117 Foswiki::Plugins::WysiwygPlugin::addXMLTag( 'customtag', 118 118 sub { 1 } ); 119 }, 120 html => '<p>' 121 . $protecton 122 . '<customtag>some > text</customtag>' 123 . $protectoff . '</p>', 124 tml => '<customtag>some > text</customtag>', 125 }, 126 { 127 exec => $TML2HTML | $ROUNDTRIP, 128 name => 'CustomXmlTagCallbackChangesText', 129 setup => sub { 130 Foswiki::Plugins::WysiwygPlugin::addXMLTag( 'customtag', 131 sub { $_[0] =~ s/some/different/; return 1; } ); 132 }, 133 html => '<p>' 134 . $protecton 135 . '<customtag>different > text</customtag>' 136 . $protectoff . '</p>', 137 tml => '<customtag>some > text</customtag>', 138 finaltml => '<customtag>different > text</customtag>', 139 }, 140 { 141 exec => $TML2HTML | $ROUNDTRIP, 142 name => 'CustomXmlTagDefaultCallback', 143 setup => sub { 144 Foswiki::Plugins::WysiwygPlugin::addXMLTag( 'customtag' ); 119 145 }, 120 146 html => '<p>'
Note: See TracChangeset
for help on using the changeset viewer.
