/* * Copyright 2016 Michael Gratton * * This software is licensed under the GNU Lesser General Public License * (version 2.1 or later). See the COPYING file in this distribution. */ class Geary.HTML.UtilTest : Gee.TestCase { public UtilTest() { base("Geary.HTML.Util"); add_test("remove_html_tags", remove_html_tags); } public void remove_html_tags() { string blockquote_body = """
hello

there

"""; string style_complete = """"""; string style_truncated = """


Hi Kenneth,

We xxxxx xxxx xx xxx xxx xx xxxx x xxxxxxxx xxxxxxxx.



Thank you,

XXXXX X XXXXXX

You can reply directly to this message or click the following link:
https://app.foobar.com/xxxxxxxxxxxxxxxx1641966deff6c48623aba

You can change your email preferences at:
https://app.foobar.com/xxxxxxxxxxx

"""; private static string HTML_BODY_COMPLETE_EXPECTED = """ Hi Kenneth, We xxxxx xxxx xx xxx xxx xx xxxx x xxxxxxxx xxxxxxxx. Thank you, XXXXX X XXXXXX You can reply directly to this message or click the following link: https://app.foobar.com/xxxxxxxxxxxxxxxx1641966deff6c48623aba You can change your email preferences at: https://app.foobar.com/xxxxxxxxxxx """; private static string HTML_ENTITIES_BODY = """
What if I said that I'd like to go to the theater tomorrow night.
 
I think we could do that!
"""; private static string HTML_ENTITIES_EXPECTED = """ What if I said that I'd like to go to the theater tomorrow night.   I think we could do that! """; }