[evolution/wip/webkit2] Add a test case for bug 750657 - one oddity



commit 54da2cf0dce21162c39c70bcb80c55b6e89748f2
Author: Milan Crha <mcrha redhat com>
Date:   Wed Aug 10 10:13:31 2016 +0200

    Add a test case for bug 750657 - one oddity

 e-util/test-html-editor-units.c |   43 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/e-util/test-html-editor-units.c b/e-util/test-html-editor-units.c
index 3c726ad..4b5aa22 100644
--- a/e-util/test-html-editor-units.c
+++ b/e-util/test-html-editor-units.c
@@ -2435,6 +2435,48 @@ test_bug_726548 (TestFixture *fixture)
        }
 }
 
+static void
+test_bug_750657 (TestFixture *fixture)
+{
+       if (!test_utils_process_commands (fixture,
+               "mode:html\n")) {
+               g_test_fail ();
+               return;
+       }
+
+       test_utils_insert_content (fixture,
+               "<html><head></head><body>\n"
+               "<blockquote type=\"cite\">\n"
+               "<p>This is the first paragraph of a quoted text which has some long text to test. It has the 
second sentence as well.</p>\n"
+               "<p><br></p>\n"
+               "<p>This is the third paragraph of a quoted text which has some long text to test. It has the 
second sentence as well.</p>\n"
+               "<blockquote type=\"cite\">\n"
+               "<p>This is the first paragraph of a sub-quoted text which has some long text to test. It has 
the second sentence as well.</p>\n"
+               "<br>\n"
+               "</blockquote>\n"
+               "<p>This is the fourth paragraph of a quoted text which has some long text to test. It has 
the second sentence as well.</p>\n"
+               "</blockquote>\n"
+               "<p><br></p>\n"
+               "</body></html>\n",
+               E_CONTENT_EDITOR_INSERT_TEXT_HTML);
+
+       if (!test_utils_run_simple_test (fixture,
+               "seq:uuuSuusD\n",
+               HTML_PREFIX "\n"
+               "<blockquote type=\"cite\">\n"
+               "<p>This is the first paragraph of a quoted text which has some long text to test. It has the 
second sentence as well.</p>\n"
+               "<p><br></p>\n"
+               "<p>This is the third paragraph of a quoted text which has some long text to test. It has the 
second sentence as well.</p>\n"
+               "<p>This is the fourth paragraph of a quoted text which has some long text to test. It has 
the second sentence as well.</p>\n"
+               "</blockquote>\n"
+               "<p><br></p>\n"
+               HTML_SUFFIX,
+               NULL)) {
+               g_test_fail ();
+               return;
+       }
+}
+
 gint
 main (gint argc,
       gchar *argv[])
@@ -2579,6 +2621,7 @@ main (gint argc,
        add_test ("/undo/justify", test_undo_justify);
        add_test ("/undo/indent", test_undo_indent);
        add_test ("/bug/726548", test_bug_726548);
+       add_test ("/bug/750657", test_bug_750657);
 
        #undef add_test
 


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