[evolution/wip/webkit2] Add a test case for bug 760989
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Add a test case for bug 760989
- Date: Wed, 10 Aug 2016 11:17:12 +0000 (UTC)
commit d4ce7234daa7ccba313efae0b53b0545f67d2d4d
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 10 13:18:34 2016 +0200
Add a test case for bug 760989
e-util/test-html-editor-units.c | 45 +++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/e-util/test-html-editor-units.c b/e-util/test-html-editor-units.c
index 4670403..4193734 100644
--- a/e-util/test-html-editor-units.c
+++ b/e-util/test-html-editor-units.c
@@ -2523,6 +2523,50 @@ test_bug_750657 (TestFixture *fixture)
}
}
+static void
+test_bug_760989 (TestFixture *fixture)
+{
+ if (!test_utils_process_commands (fixture,
+ "mode:html\n"
+ "type:a\n")) {
+ g_test_fail ();
+ return;
+ }
+
+ test_utils_insert_content (fixture,
+ "<html><head></head><body>\n"
+ "One line before quotation<br>\n"
+ "<blockquote type=\"cite\">\n"
+ "<p>Single line quoted.</p>\n"
+ "</blockquote>\n"
+ "</body></html>",
+ E_CONTENT_EDITOR_INSERT_TEXT_HTML);
+
+ if (!test_utils_run_simple_test (fixture,
+ "seq:ChcD\n",
+ HTML_PREFIX "<p>One line before quotation</p>\n"
+ "<blockquote type=\"cite\">\n"
+ "<p>Single line quoted.</p>\n"
+ "</blockquote>" HTML_SUFFIX,
+ "One line before quotation\n"
+ "> Single line quoted.")) {
+ g_test_fail ();
+ return;
+ }
+
+ if (!test_utils_run_simple_test (fixture,
+ "seq:Cecb\n",
+ HTML_PREFIX "<p>One line before quotation</p>\n"
+ "<blockquote type=\"cite\">\n"
+ "<p>Single line quoted</p>\n"
+ "</blockquote>" HTML_SUFFIX,
+ "One line before quotation\n"
+ "> Single line quoted")) {
+ g_test_fail ();
+ return;
+ }
+}
+
gint
main (gint argc,
gchar *argv[])
@@ -2670,6 +2714,7 @@ main (gint argc,
add_test ("/undo/link-paste/plain", test_undo_link_paste_plain);
add_test ("/bug/726548", test_bug_726548);
add_test ("/bug/750657", test_bug_750657);
+ add_test ("/bug/760989", test_bug_760989);
#undef add_test
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]