[evolution] Fix various editor's unit tests



commit e4bf5e431b7f2e578f36f56b4098227dcb9efd92
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.

 src/e-util/test-html-editor-units-bugs.c |    3 ++-
 src/e-util/test-html-editor-units.c      |    7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/e-util/test-html-editor-units-bugs.c b/src/e-util/test-html-editor-units-bugs.c
index e0cb9a1..1a92ca6 100644
--- a/src/e-util/test-html-editor-units-bugs.c
+++ b/src/e-util/test-html-editor-units-bugs.c
@@ -683,12 +683,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/src/e-util/test-html-editor-units.c b/src/e-util/test-html-editor-units.c
index 6a5f032..2778855 100644
--- a/src/e-util/test-html-editor-units.c
+++ b/src/e-util/test-html-editor-units.c
@@ -2606,12 +2606,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\">"
@@ -2639,13 +2640,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]