[evolution/gnome-3-22] Fix various editor's unit tests



commit 47cbb225886ad33f777cb454189be3a494bdde72
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Mar 10 09:42:33 2017 +0100

    Fix various editor's unit tests
    
    They were missing the end tag of the PRE element.

 e-util/test-html-editor-units-bugs.c |    3 ++-
 e-util/test-html-editor-units.c      |    7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/e-util/test-html-editor-units-bugs.c b/e-util/test-html-editor-units-bugs.c
index 0d0eb60..3459ad6 100644
--- a/e-util/test-html-editor-units-bugs.c
+++ b/e-util/test-html-editor-units-bugs.c
@@ -685,12 +685,13 @@ test_bug_772171 (TestFixture *fixture)
        test_utils_insert_content (fixture,
                "<body><pre>a\n"
                "b\n"
+               "</pre>"
                "<span class=\"-x-evo-to-body\" data-credits=\"On Thu, 2016-09-15 at 08:08 -0400, user 
wrote:\"></span>"
                "<span class=\"-x-evo-cite-body\"></span></body>",
                E_CONTENT_EDITOR_INSERT_REPLACE_ALL | E_CONTENT_EDITOR_INSERT_TEXT_HTML);
 
        if (!test_utils_run_simple_test (fixture,
-               "seq:deb",
+               "seq:ddeb",
                HTML_PREFIX "<div style=\"width: 71ch;\">On Thu, 2016-09-15 at 08:08 -0400, user wrote:</div>"
                "<blockquote type=\"cite\">"
                "<div style=\"width: 71ch;\">&gt; <br></div>"
diff --git a/e-util/test-html-editor-units.c b/e-util/test-html-editor-units.c
index c6750fc..4de3c7e 100644
--- a/e-util/test-html-editor-units.c
+++ b/e-util/test-html-editor-units.c
@@ -2608,12 +2608,13 @@ test_delete_quoted (TestFixture *fixture)
                "<body><pre>a\n"
                "b\n"
                "c\n"
+               "</pre>"
                "<span class=\"-x-evo-to-body\" data-credits=\"On Thu, 2016-09-15 at 08:08 -0400, user 
wrote:\"></span>"
                "<span class=\"-x-evo-cite-body\"></span></body>",
                E_CONTENT_EDITOR_INSERT_REPLACE_ALL | E_CONTENT_EDITOR_INSERT_TEXT_HTML);
 
        if (!test_utils_run_simple_test (fixture,
-               "seq:ddddSusDdd\n"
+               "seq:dddddSusDdd\n"
                "type:b",
                HTML_PREFIX "<div style=\"width: 71ch;\">On Thu, 2016-09-15 at 08:08 -0400, user wrote:</div>"
                "<blockquote type=\"cite\">"
@@ -2641,13 +2642,13 @@ test_delete_after_quoted (TestFixture *fixture)
        test_utils_insert_content (fixture,
                "<body><pre>a\n"
                "b\n"
-               "\n"
+               "\n</pre>"
                "<span class=\"-x-evo-to-body\" data-credits=\"On Thu, 2016-09-15 at 08:08 -0400, user 
wrote:\"></span>"
                "<span class=\"-x-evo-cite-body\"></span></body>",
                E_CONTENT_EDITOR_INSERT_REPLACE_ALL | E_CONTENT_EDITOR_INSERT_TEXT_HTML);
 
        if (!test_utils_run_simple_test (fixture,
-               "seq:dddbb\n",
+               "seq:ddddbb\n",
                HTML_PREFIX "<div style=\"width: 71ch;\">On Thu, 2016-09-15 at 08:08 -0400, user wrote:</div>"
                "<blockquote type=\"cite\">"
                "<pre>&gt; a</pre>"


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