~ubuntu-branches/ubuntu/trusty/libtext-markdown-perl/trusty

« back to all changes in this revision

Viewing changes to t/36multimarkdown_featurebleed.t

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2008-04-26 00:35:34 UTC
  • Revision ID: james.westby@ubuntu.com-20080426003534-oo979u4lubd1ltc1
Tags: upstream-1.0.19
ImportĀ upstreamĀ versionĀ 1.0.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use strict;
 
2
use warnings;
 
3
use Test::More tests => 2;
 
4
use File::Slurp qw(slurp);
 
5
use FindBin qw($Bin);
 
6
 
 
7
BEGIN: {
 
8
    use_ok('Text::Markdown');
 
9
}
 
10
 
 
11
my $m = Text::Markdown->new();
 
12
 
 
13
my $docsdir = "$Bin/docs-multimarkdown";
 
14
my $input = q{This is a formatted ![image][] and a [link][] with attributes.
 
15
 
 
16
[image]: http://path.to/image "Image title" width=40px height=400px
 
17
Some non-link text.
 
18
[link]: http://path.to/link.html "Some Link" class=external
 
19
        style="border: solid black 1px;"
 
20
};
 
21
my $output = q{<p>This is a formatted <img src="http://path.to/image" alt="image" title="Image title" width="40px" height="400px" /> and a <a href="http://path.to/link.html" title="Some Link" style="border: solid black 1px;" class="external">link</a> with attributes.</p>
 
22
 
 
23
<p>Some non-link text.</p>
 
24
};
 
25
 
 
26
my $processed = $m->markdown($input);
 
27
 
 
28
isnt($processed, $output, 'MultiMarkdown image and link attributes feature bleeds into Text::Markdown');
 
29