[evolution/wip/webkit2] Add a new test for removing characters from link



commit 1cdc2431e06dab3ab276f396266888b3e98f829e
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Jul 26 15:26:00 2016 +0200

    Add a new test for removing characters from link

 e-util/test-html-editor-units.c |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/e-util/test-html-editor-units.c b/e-util/test-html-editor-units.c
index 3c98284..58e0e5e 100644
--- a/e-util/test-html-editor-units.c
+++ b/e-util/test-html-editor-units.c
@@ -629,7 +629,7 @@ test_link_insert_typed_change_description (TestFixture *fixture)
 }
 
 static void
-test_link_insert_dialog_remove (TestFixture *fixture)
+test_link_insert_dialog_remove_link (TestFixture *fixture)
 {
        if (!test_utils_run_simple_test (fixture,
                "mode:html\n"
@@ -657,6 +657,18 @@ test_link_insert_typed_append (TestFixture *fixture)
 }
 
 static void
+test_link_insert_typed_remove (TestFixture *fixture)
+{
+       if (!test_utils_run_simple_test (fixture,
+               "mode:html\n"
+               "type:www.gnome.org \n"
+               "seq:bbb\n",
+               HTML_PREFIX "<p><a href=\"http://www.gnome.org\";>www.gnome.o</a></p>" HTML_SUFFIX,
+               "www.gnome.o"))
+               g_test_fail ();
+}
+
+static void
 test_h_rule_insert (TestFixture *fixture)
 {
        if (!test_utils_run_simple_test (fixture,
@@ -765,10 +777,11 @@ main (gint argc,
        add_test ("/list/multi/change/html", test_list_multi_change_html);
        add_test ("/link/insert/dialog", test_link_insert_dialog);
        add_test ("/link/insert/dialog/selection", test_link_insert_dialog_selection);
-       add_test ("/link/insert/dialog/remove", test_link_insert_dialog_remove);
+       add_test ("/link/insert/dialog/remove-link", test_link_insert_dialog_remove_link);
        add_test ("/link/insert/typed", test_link_insert_typed);
        add_test ("/link/insert/typed/change-description", test_link_insert_typed_change_description);
        add_test ("/link/insert/typed/append", test_link_insert_typed_append);
+       add_test ("/link/insert/typed/remove", test_link_insert_typed_remove);
        add_test ("/h-rule/insert", test_h_rule_insert);
        add_test ("/h-rule/insert-text-after", test_h_rule_insert_text_after);
 


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