[evolution/gnome-3-38] Adapt html editor tests after "I#1158 - Composer: Disable spellcheck of quoted text"
- From: Milan Crha <mcrha src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [evolution/gnome-3-38] Adapt html editor tests after "I#1158 - Composer: Disable spellcheck of quoted text"
 
- Date: Tue,  3 Nov 2020 09:42:37 +0000 (UTC)
 
commit 13a3f16f37cb8b23961f1b0bfa45e2592c610345
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 3 10:39:50 2020 +0100
    Adapt html editor tests after "I#1158 - Composer: Disable spellcheck of quoted text"
    
    Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/1158
 src/e-util/test-html-editor-units-utils.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/e-util/test-html-editor-units-utils.c b/src/e-util/test-html-editor-units-utils.c
index 51ecd453d8..309176bc2d 100644
--- a/src/e-util/test-html-editor-units-utils.c
+++ b/src/e-util/test-html-editor-units-utils.c
@@ -753,12 +753,20 @@ test_utils_html_equal (TestFixture *fixture,
 
        script = e_web_view_jsc_printf_script (
                "var EvoEditorTest = {};\n"
+               "EvoEditorTest.fixupBlockquotes = function(parent) {\n"
+               "       var ii, elems = parent.getElementsByTagName(\"BLOCKQUOTE\");\n"
+               "       for (ii = 0; ii < elems.length; ii++) {\n"
+               "               elems[ii].removeAttribute(\"spellcheck\");\n"
+               "       }\n"
+               "}\n"
                "EvoEditorTest.isHTMLEqual = function(html1, html2) {\n"
                "       var elem1, elem2;\n"
                "       elem1 = document.createElement(\"testHtmlEqual\");\n"
                "       elem2 = document.createElement(\"testHtmlEqual\");\n"
                "       elem1.innerHTML = html1.replace(/ /g, \" \").replace(/ /g, \" \");\n"
                "       elem2.innerHTML = html2.replace(/ /g, \" \").replace(/ /g, \" \");\n"
+               "       EvoEditorTest.fixupBlockquotes(elem1);\n"
+               "       EvoEditorTest.fixupBlockquotes(elem2);\n"
                "       elem1.normalize();\n"
                "       elem2.normalize();\n"
                "       return elem1.isEqualNode(elem2);\n"
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]