diff options
Diffstat (limited to 't')
-rw-r--r-- | t/feed.t | 4 | ||||
-rw-r--r-- | t/view.t | 12 |
2 files changed, 1 insertions, 15 deletions
@@ -76,9 +76,7 @@ EOF "id is set to default"); } - unlike($feed, qr/drop me/, "long quoted text dropped"); - like($feed, qr!/\d%40example\.com/f/#q!, - "/f/ url generated for long quoted text"); + like($feed, qr/drop me/, "long quoted text kept"); like($feed, qr/inline me here/, "short quoted text kept"); like($feed, qr/keep me/, "unquoted text saved"); } @@ -49,18 +49,6 @@ EOF like($html, qr/> keep this inline/, "short quoted text is inline"); like($html, qr/<a\nid=[^>]+><\/a>> Long and wordy/, "long quoted text is anchored"); - - # short page - my $pfx = "../hello%40example.com/f/"; - $mime = Email::MIME->new($s); - my $short = PublicInbox::View::msg_html(undef, $mime, $pfx); - like($short, qr!<a\nhref="\.\./hello%40example\.com/f/!s, - "MID link present"); - like($short, qr/\n> keep this inline/, - "short quoted text is inline"); - like($short, qr/<a\nhref="\Q$pfx\E#[^>]+>Long and wordy/, - "long quoted text is made into a link"); - ok(length($short) < length($html), "short page is shorter"); } # multipart crap |