about summary refs log tree commit homepage
path: root/t
diff options
authorEric Wong <e@80x24.org>2016-04-13 03:04:11 +0000
committerEric Wong <e@80x24.org>2016-04-13 03:04:41 +0000
commite06797ae541b8fcb65030531d854184e7ba2c70d (patch)
tree875656cc102facd1b44710366af9cd0d3fb8d480 /t
parent27da06a699bd6cb527864827b7a067d637208d30 (diff)
Quote-folding can be detrimental as it fails to hide the
real problem of over-quoting.

Over-quoting wastes bandwidth and space for all readers, not
just WWW readers of the public-inbox.  So hopefully removing
quote-folding support from the WWW interface can shame those
repliers into quoting only relevant portions of what they reply
Diffstat (limited to 't')
2 files changed, 1 insertions, 15 deletions
diff --git a/t/feed.t b/t/feed.t
index 73b7d0bb..2096b73e 100644
--- a/t/feed.t
+++ b/t/feed.t
@@ -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");
diff --git a/t/view.t b/t/view.t
index 568ab303..2da741a8 100644
--- a/t/view.t
+++ b/t/view.t
@@ -49,18 +49,6 @@ EOF
         like($html, qr/&gt; keep this inline/, "short quoted text is inline");
         like($html, qr/<a\nid=[^>]+><\/a>&gt; 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&gt; 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