add poplink wrapping block test
authorAdrian Oldham <adriann@visualthought.com.au>
Thu, 24 Oct 2013 01:24:20 +0000 (12:24 +1100)
committerTony Cook <tony@develop-help.com>
Sun, 3 Nov 2013 23:20:23 +0000 (10:20 +1100)
t/010-modules/050-format.t

index 12e6732..b9336ff 100644 (file)
@@ -1,6 +1,6 @@
 #!perl -w
 use strict;
-use Test::More tests => 138;
+use Test::More tests => 139;
 
 sub format_test($$$;$);
 sub noformat_test($$$;$);
@@ -593,6 +593,27 @@ IN
 <p>world</p>
 </div>
 </a>
+OUT
+
+format_test <<IN, <<OUT, 'poplink over div block containing paras', 'both';
+
+poplink[http://www.example.com/|
+
+div[#id class background-color: red;|
+
+hello
+
+world
+
+]
+]
+IN
+<a href="http://www.example.com/">
+<div id="id" style="background-color: red;" class="class" target="_blank">
+<p>hello</p>
+<p>world</p>
+</div>
+</a>
 OUT
 
   # remove_format() tests