[gmime] Expanded GMimeFilterHTML tests



commit 238ccc221b634eb957264e7ea1a16ba48c8cf9b7
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Sun Dec 17 16:03:55 2017 -0500

    Expanded GMimeFilterHTML tests

 tests/data/filters/html-input.txt              |   13 +++++++++++++
 tests/data/filters/html-output.blockquote.html |   13 +++++++++++++
 tests/data/filters/html-output.cite.html       |   13 +++++++++++++
 tests/data/filters/html-output.mark.html       |   13 +++++++++++++
 4 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/tests/data/filters/html-input.txt b/tests/data/filters/html-input.txt
index 1191c31..c09c716 100644
--- a/tests/data/filters/html-input.txt
+++ b/tests/data/filters/html-input.txt
@@ -9,6 +9,19 @@ like https://github.com/jstedfast/gmime - GMime's very own website!
 
 Or file://localhost/dev/null file URLs.
 
+GMime's URL scanner should also work more complex urls:
+
+- addr-spec w/ domain literal: fejj@[127.0.0.1]
+- web url w/ domain literal: http://[127.0.0.1]/index.html
+- web url w/ username: http://user domain com/index.html
+- web url w/ user & pass: http://user:pass domain com:80/index.html
+- web url w/ user and domain literal: http://user@[127.0.0.1]/index.html
+- web url surrounded by []'s: [http://www.google.com/]
+- web url surrounded by ()'s: (http://www.google.com/)
+- web url surrounded by {}'s: {http://www.google.com/}
+- web url surrounded by <>'s: <http://www.google.com/>
+- web url with brackets: http://www.google.com/symbols.(123){1}[2].html
+
 And how about quoting? Let's give that a try...
 
This is one level of quoting
diff --git a/tests/data/filters/html-output.blockquote.html b/tests/data/filters/html-output.blockquote.html
index efff0e1..3256f0f 100644
--- a/tests/data/filters/html-output.blockquote.html
+++ b/tests/data/filters/html-output.blockquote.html
@@ -9,6 +9,19 @@ like <a href="https://github.com/jstedfast/gmime";>https://github.com/jstedfast/g
 <br>
 Or <a href="file://localhost/dev/null">file://localhost/dev/null</a>&nbsp;file URLs.<br>
 <br>
+GMime's URL scanner should also work more complex urls:<br>
+<br>
+- addr-spec w/ domain literal: <a href="mailto:fejj@[127.0.0.1]";>fejj@[127.0.0.1]</a><br>
+- web url w/ domain literal: <a href="http://[127.0.0.1]/index.html";>http://[127.0.0.1]/index.html</a><br>
+- web url w/ username: <a href="http://user domain com/index.html">http://user domain com/index.html</a><br>
+- web url w/ user &amp; pass: <a href="http://user:pass domain com:80/index.html">http://user:pass domain 
com:80/index.html</a><br>
+- web url w/ user and domain literal: <a 
href="http://user@[127.0.0.1]/index.html";>http://user@[127.0.0.1]/index.html</a><br>
+- web url surrounded by []'s: [<a href="http://www.google.com/";>http://www.google.com/</a>]<br>
+- web url surrounded by ()'s: (<a href="http://www.google.com/";>http://www.google.com/</a>)<br>
+- web url surrounded by {}'s: {<a href="http://www.google.com/";>http://www.google.com/</a>}<br>
+- web url surrounded by &lt;&gt;'s: &lt;<a href="http://www.google.com/";>http://www.google.com/</a>&gt;<br>
+- web url with brackets: <a 
href="http://www.google.com/symbols.(123){1}[2].html">http://www.google.com/symbols.(123){1}[2].html</a><br>
+<br>
 And how about quoting? Let's give that a try...<br>
 <br>
 <blockquote class="level_001">This is one level of quoting<br>
diff --git a/tests/data/filters/html-output.cite.html b/tests/data/filters/html-output.cite.html
index a489d67..e2628ad 100644
--- a/tests/data/filters/html-output.cite.html
+++ b/tests/data/filters/html-output.cite.html
@@ -9,6 +9,19 @@
 &gt; <br>
 &gt; Or <a href="file://localhost/dev/null">file://localhost/dev/null</a>&nbsp;file URLs.<br>
 &gt; <br>
+&gt; GMime's URL scanner should also work more complex urls:<br>
+&gt; <br>
+&gt; - addr-spec w/ domain literal: <a href="mailto:fejj@[127.0.0.1]";>fejj@[127.0.0.1]</a><br>
+&gt; - web url w/ domain literal: <a 
href="http://[127.0.0.1]/index.html";>http://[127.0.0.1]/index.html</a><br>
+&gt; - web url w/ username: <a href="http://user domain com/index.html">http://user domain 
com/index.html</a><br>
+&gt; - web url w/ user &amp; pass: <a href="http://user:pass domain com:80/index.html">http://user:pass 
domain com:80/index.html</a><br>
+&gt; - web url w/ user and domain literal: <a 
href="http://user@[127.0.0.1]/index.html";>http://user@[127.0.0.1]/index.html</a><br>
+&gt; - web url surrounded by []'s: [<a href="http://www.google.com/";>http://www.google.com/</a>]<br>
+&gt; - web url surrounded by ()'s: (<a href="http://www.google.com/";>http://www.google.com/</a>)<br>
+&gt; - web url surrounded by {}'s: {<a href="http://www.google.com/";>http://www.google.com/</a>}<br>
+&gt; - web url surrounded by &lt;&gt;'s: &lt;<a 
href="http://www.google.com/";>http://www.google.com/</a>&gt;<br>
+&gt; - web url with brackets: <a 
href="http://www.google.com/symbols.(123){1}[2].html">http://www.google.com/symbols.(123){1}[2].html</a><br>
+&gt; <br>
 &gt; And how about quoting? Let's give that a try...<br>
 &gt; <br>
 &gt; &gt; This is one level of quoting<br>
diff --git a/tests/data/filters/html-output.mark.html b/tests/data/filters/html-output.mark.html
index 76a02d0..c0c9d74 100644
--- a/tests/data/filters/html-output.mark.html
+++ b/tests/data/filters/html-output.mark.html
@@ -9,6 +9,19 @@ like <a href="https://github.com/jstedfast/gmime";>https://github.com/jstedfast/g
 <br>
 Or <a href="file://localhost/dev/null">file://localhost/dev/null</a>&nbsp;file URLs.<br>
 <br>
+GMime's URL scanner should also work more complex urls:<br>
+<br>
+- addr-spec w/ domain literal: <a href="mailto:fejj@[127.0.0.1]";>fejj@[127.0.0.1]</a><br>
+- web url w/ domain literal: <a href="http://[127.0.0.1]/index.html";>http://[127.0.0.1]/index.html</a><br>
+- web url w/ username: <a href="http://user domain com/index.html">http://user domain com/index.html</a><br>
+- web url w/ user &amp; pass: <a href="http://user:pass domain com:80/index.html">http://user:pass domain 
com:80/index.html</a><br>
+- web url w/ user and domain literal: <a 
href="http://user@[127.0.0.1]/index.html";>http://user@[127.0.0.1]/index.html</a><br>
+- web url surrounded by []'s: [<a href="http://www.google.com/";>http://www.google.com/</a>]<br>
+- web url surrounded by ()'s: (<a href="http://www.google.com/";>http://www.google.com/</a>)<br>
+- web url surrounded by {}'s: {<a href="http://www.google.com/";>http://www.google.com/</a>}<br>
+- web url surrounded by &lt;&gt;'s: &lt;<a href="http://www.google.com/";>http://www.google.com/</a>&gt;<br>
+- web url with brackets: <a 
href="http://www.google.com/symbols.(123){1}[2].html">http://www.google.com/symbols.(123){1}[2].html</a><br>
+<br>
 And how about quoting? Let's give that a try...<br>
 <br>
 <font color="#008888">&gt; This is one level of quoting</font><br>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]