diff --git a/netwerk/test/unit/test_mozTXTToHTMLConv.js b/netwerk/test/unit/test_mozTXTToHTMLConv.js
index 8ec9c8711150..7f4aca34df9c 100644
--- a/netwerk/test/unit/test_mozTXTToHTMLConv.js
+++ b/netwerk/test/unit/test_mozTXTToHTMLConv.js
@@ -16,16 +16,28 @@ function run_test() {
input: "RFC1738: then",
url: "http://mozilla.org"
},
+ {
+ input: "RFC1738: then",
+ url: "mailto:john.doe+test@mozilla.org"
+ },
// -- RFC2396E
{
input: "RFC2396E: then",
url: "http://mozilla.org/"
},
+ {
+ input: "RFC2396E: then",
+ url: "mailto:john.doe+test@mozilla.org"
+ },
// -- abbreviated
{
input: "see www.mozilla.org maybe",
url: "http://www.mozilla.org"
},
+ {
+ input: "mail john.doe+test@mozilla.org maybe",
+ url: "mailto:john.doe+test@mozilla.org"
+ },
// -- delimiters
{
input: "see http://www.mozilla.org/maybe today", // Spaces
@@ -85,10 +97,18 @@ function run_test() {
input: "bracket: http://localhost/[1] etc.",
url: "http://localhost/"
},
+ {
+ input: "bracket: john.doe+test@mozilla.org[1] etc.",
+ url: "mailto:john.doe+test@mozilla.org"
+ },
{
input: "parenthesis: (http://localhost/) etc.",
url: "http://localhost/"
},
+ {
+ input: "parenthesis: (john.doe+test@mozilla.org) etc.",
+ url: "mailto:john.doe+test@mozilla.org"
+ },
{
input: "(thunderbird)http://mozilla.org/thunderbird",
url: "http://mozilla.org/thunderbird"