<!-- expected --> ...your golden HTML... <!-- /expected -->The golden HTML should be what you expect to be rendered in the final output. You can optionally enable expansion of %variables% (
Foswiki::Func::expandCommonVariables
) on an expected block thus:
<!-- expected expand -->Normally you should not use the expand option. It is intended primarily for expanding URL components when testing generated HTML which is specific to the installation, and should be used with caution as it assumes that Foswiki doesn't do anything naughty during this expansion. You specify your actual test markup in the same way:
<!-- actual --> <!-- /actual -->