[evolution/wip/mcrha/webkit-jsc-api] test-html-editor-units: Remove test for bug 726548



commit 9996ac0efaa35b387b5e92414a1fe2f8e2e0f19e
Author: Milan Crha <mcrha redhat com>
Date:   Thu Apr 9 10:18:12 2020 +0200

    test-html-editor-units: Remove test for bug 726548
    
    No API in the standard to influence clipboard content for certain data type,
    thus let's keep this up to the WebKit itself. The test had been added only
    for easier testing, which was too early.

 src/e-util/test-html-editor-units-bugs.c | 46 --------------------------------
 1 file changed, 46 deletions(-)
---
diff --git a/src/e-util/test-html-editor-units-bugs.c b/src/e-util/test-html-editor-units-bugs.c
index f8f1c753f6..acb312fae1 100644
--- a/src/e-util/test-html-editor-units-bugs.c
+++ b/src/e-util/test-html-editor-units-bugs.c
@@ -22,51 +22,6 @@
 
 #include "test-html-editor-units-bugs.h"
 
-static void
-test_bug_726548 (TestFixture *fixture)
-{
-       gboolean success;
-       gchar *text;
-       const gchar *expected_plain =
-               "aaa\n"
-               "   1. a\n"
-               "   2. b\n"
-               "   3. c\n"
-               "\n";
-
-       if (!test_utils_run_simple_test (fixture,
-               "mode:plain\n"
-               "type:aaa\\n\n"
-               "action:style-list-number\n"
-               "type:a\\nb\\nc\\n\\n\n"
-               "seq:C\n"
-               "type:ac\n"
-               "seq:c\n",
-               HTML_PREFIX "<div style=\"width: 71ch;\">aaa</div>"
-               "<ol>"
-               "<li>a</li><li>b</li><li>c</li></ol>"
-               "<div style=\"width: 71ch;\"><br></div>" HTML_SUFFIX,
-               expected_plain)) {
-               g_test_fail ();
-               return;
-       }
-
-       text = test_utils_get_clipboard_text (FALSE);
-       success = test_utils_html_equal (fixture, text, expected_plain);
-
-       if (!success) {
-               if (test_utils_get_keep_going ())
-                       g_printerr ("%s: clipboard Plain text \n---%s---\n does not match expected 
Plain\n---%s---", G_STRFUNC, text, expected_plain);
-               else
-                       g_warning ("%s: clipboard Plain text \n---%s---\n does not match expected 
Plain\n---%s---", G_STRFUNC, text, expected_plain);
-
-               g_free (text);
-               g_test_fail ();
-       } else {
-               g_free (text);
-       }
-}
-
 static void
 test_bug_750657 (TestFixture *fixture)
 {
@@ -1670,7 +1625,6 @@ test_issue_107 (TestFixture *fixture)
 void
 test_add_html_editor_bug_tests (void)
 {
-       test_utils_add_test ("/bug/726548", test_bug_726548);
        test_utils_add_test ("/bug/750657", test_bug_750657);
        test_utils_add_test ("/bug/760989", test_bug_760989);
        test_utils_add_test ("/bug/767903", test_bug_767903);


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