[evolution/gnome-3-22] Add a test for bug 772513
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-22] Add a test for bug 772513
- Date: Fri, 14 Oct 2016 07:45:08 +0000 (UTC)
commit b7a5bda3d2899d7149a3a3e0b6df703e16d93f4a
Author: Tomas Popela <tpopela redhat com>
Date: Fri Oct 14 09:16:05 2016 +0200
Add a test for bug 772513
e-util/test-html-editor-units-bugs.c | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/e-util/test-html-editor-units-bugs.c b/e-util/test-html-editor-units-bugs.c
index b7dbfe3..c982d2c 100644
--- a/e-util/test-html-editor-units-bugs.c
+++ b/e-util/test-html-editor-units-bugs.c
@@ -699,6 +699,38 @@ test_bug_772171 (TestFixture *fixture)
g_test_fail ();
}
+static void
+test_bug_772513 (TestFixture *fixture)
+{
+ EContentEditor *cnt_editor;
+ gboolean set_signature_from_message, check_if_signature_is_changed, ignore_next_signature_change;
+
+ test_utils_fixture_change_setting_boolean (fixture, "org.gnome.evolution.mail",
"composer-reply-start-bottom", TRUE);
+
+ if (!test_utils_process_commands (fixture,
+ "mode:plain\n")) {
+ g_test_fail ();
+ return;
+ }
+
+ cnt_editor = test_utils_get_content_editor (fixture);
+
+ e_content_editor_insert_signature (
+ cnt_editor,
+ "",
+ FALSE,
+ "none",
+ &set_signature_from_message,
+ &check_if_signature_is_changed,
+ &ignore_next_signature_change);
+
+ if (!test_utils_run_simple_test (fixture,
+ "",
+ HTML_PREFIX_PLAIN "<div style=\"width: 71ch;\"><br></div>" HTML_SUFFIX,
+ "\n"))
+ g_test_fail ();
+}
+
void
test_add_html_editor_bug_tests (void)
{
@@ -715,4 +747,5 @@ test_add_html_editor_bug_tests (void)
test_utils_add_test ("/bug/771131", test_bug_771131);
test_utils_add_test ("/bug/771493", test_bug_771493);
test_utils_add_test ("/bug/772171", test_bug_772171);
+ test_utils_add_test ("/bug/772513", test_bug_772513);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]