[evolution/wip/mcrha/webkit-jsc-api] test-web-view-jsc: Add tests for 'IMG' and 'A' tags for ConvertToPlain



commit efb6ecb3db7a756c1eae4b60edd7ddf106a5da44
Author: Milan Crha <mcrha redhat com>
Date:   Wed Mar 11 17:37:00 2020 +0100

    test-web-view-jsc: Add tests for 'IMG' and 'A' tags for ConvertToPlain

 src/e-util/test-web-view-jsc.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/src/e-util/test-web-view-jsc.c b/src/e-util/test-web-view-jsc.c
index dd9f25c230..d3439a62d0 100644
--- a/src/e-util/test-web-view-jsc.c
+++ b/src/e-util/test-web-view-jsc.c
@@ -2518,7 +2518,19 @@ test_convert_to_plain (TestFixture *fixture)
                "1234567890\n"
                "1234567890\n"
                "1\n",
-               10 }
+               10 },
+       /* 49 */{ HTML ("<div style='width:70ch'>before <img src='https://no.where/img.img'> after</div>"),
+               "before after\n",
+               70 },
+       /* 50 */{ HTML ("<div style='width:70ch'>before <img src='https://no.where/img.img' alt='alt'> 
after</div>"),
+               "before alt after\n",
+               70 },
+       /* 51 */{ HTML ("<div style='width:70ch'>before <a href='https://no.where/'>https://no.where/</a> 
after</div>"),
+               "before https://no.where/ after\n",
+               70 },
+       /* 52 */{ HTML ("<div style='width:70ch'>before <a href='https://no.where/'>here</a> after</div>"),
+               "before here after\n",
+               70 }
        };
 
        #undef HTML


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