fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-07-14 12:51 am

[dw-free] failing test in cleaner-ljtags.t

[commit: http://hg.dwscoalition.org/dw-free/rev/3d0345d14f9d]

http://bugs.dwscoalition.org/show_bug.cgi?id=3767

Changed expected behavior: we now ignore the extra closing tag rather than
printing it out.

Patch by [personal profile] fu.

Files modified:
  • t/cleaner-ljtags.t
--------------------------------------------------------------------------------
diff -r 62e6e38fb9d0 -r 3d0345d14f9d t/cleaner-ljtags.t
--- a/t/cleaner-ljtags.t	Wed Jul 13 21:48:46 2011 +0800
+++ b/t/cleaner-ljtags.t	Thu Jul 14 08:50:51 2011 +0800
@@ -60,8 +60,8 @@
    "nested div cuts, expanded");
 is($clean->(qq{Nested: <div class="ljcut" text="Nested">baaaaaaaaaa<div style="background: red">I AM RED</div>arrrrrr</div></div>},
             cuturl => ""),
-   qq{Nested: <a name="cutid1"></a><div class="ljcut" text="Nested">baaaaaaaaaa<div style="background: red">I AM RED</div>arrrrrr</div>&lt;/div&gt;},
-   "nested div cuts, expanded, user's extra close div");
+   qq{Nested: <a name="cutid1"></a><div class="ljcut" text="Nested">baaaaaaaaaa<div style="background: red">I AM RED</div>arrrrrr</div>},
+   "nested div cuts, expanded, ignored user's extra close div");
 is($clean->(qq{Nested: <div class="ljcut"><div><div></div></div></div>fin},
             cuturl => ""),
    qq{Nested: <a name="cutid1"></a><div class="ljcut" text="Read more..."><div><div></div></div></div>fin},
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org