X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=blobdiff_plain;f=t%2Factions.t;fp=t%2Factions.t;h=7f23cd4b7fb6d971bc6082d3d1d098fea7f1b1d9;hp=8805a558a2692364308ad991eb6bbb33b0f2a626;hb=f95841752748ad1de7b0859eca1d37c8b5f46758;hpb=95dcb071e6789c2b985c36467674db31f9b35c39 diff --git a/t/actions.t b/t/actions.t index 8805a55..7f23cd4 100644 --- a/t/actions.t +++ b/t/actions.t @@ -125,6 +125,20 @@ is( 'remove name from attribute' ); +is( + run_for { $_->remove_from_attribute({ madeup => 'main' }) }, + $tmpl, + 'remove name from non existing attribute (ignored)' +); + +($expect = $tmpl) =~ s/class="main"/class=""/; + +is( + run_for { $_->remove_class( 'main' ) }, + $expect, + 'remove_class' +); + ($expect = $tmpl) =~ s/ class="main"//; is(