[evolution/wip/webkit2] Add a test case for bug 769708
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Add a test case for bug 769708
- Date: Wed, 10 Aug 2016 15:56:31 +0000 (UTC)
commit 1a9e291d591bb50f95eb0977c4c23329f39b4608
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 10 17:57:31 2016 +0200
Add a test case for bug 769708
e-util/test-html-editor-units.c | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/e-util/test-html-editor-units.c b/e-util/test-html-editor-units.c
index 4193734..446fe46 100644
--- a/e-util/test-html-editor-units.c
+++ b/e-util/test-html-editor-units.c
@@ -2567,6 +2567,41 @@ test_bug_760989 (TestFixture *fixture)
}
}
+static void
+test_bug_769708 (TestFixture *fixture)
+{
+ if (!test_utils_process_commands (fixture,
+ "mode:html\n")) {
+ g_test_fail ();
+ return;
+ }
+
+ test_utils_insert_content (fixture,
+ "<html><head><style id=\"-x-evo-quote-style\" type=\"text/css\">.-x-evo-quoted {
-webkit-user-select: none; }</style>"
+ "<style id=\"-x-evo-style-a\" type=\"text/css\">a { cursor: text; }</style></head>"
+ "<body data-evo-plain-text=\"\" spellcheck=\"true\">"
+ "<p data-evo-paragraph=\"\" class=\"\" id=\"-x-evo-input-start\">aaa</p>"
+ "<div class=\"-x-evo-signature-wrapper\"><span class=\"-x-evo-signature\"
id=\"autogenerated\"><pre>-- <br></pre>"
+ "<p data-evo-paragraph=\"\" class=\"\">user <user@no.where></p>"
+ "</span></div></body></html>",
+ E_CONTENT_EDITOR_INSERT_REPLACE_ALL | E_CONTENT_EDITOR_INSERT_TEXT_HTML);
+
+ if (!test_utils_process_commands (fixture,
+ "mode:plain\n")) {
+ g_test_fail ();
+ return;
+ }
+
+ if (!test_utils_run_simple_test (fixture,
+ "",
+ HTML_PREFIX_PLAIN "<p style=\"width: 71ch;\">aaa</p><div><span><p style=\"width:
71ch;\">-- </p>"
+ "<p style=\"width: 71ch;\"<br></p><p style=\"width: 71ch;\">user
<user@no.where></p></span></div>" HTML_SUFFIX,
+ "aaa\n"
+ "-- \n"
+ "user <user@no.where>"))
+ g_test_fail ();
+}
+
gint
main (gint argc,
gchar *argv[])
@@ -2715,6 +2750,7 @@ main (gint argc,
add_test ("/bug/726548", test_bug_726548);
add_test ("/bug/750657", test_bug_750657);
add_test ("/bug/760989", test_bug_760989);
+ add_test ("/bug/769708", test_bug_769708);
#undef add_test
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]