[evolution] Add a test case for bug 769955
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Add a test case for bug 769955
- Date: Mon, 15 Aug 2016 21:09:05 +0000 (UTC)
commit 5ba394e16f0edbe9e30bb716b895a86b1b979345
Author: Milan Crha <mcrha redhat com>
Date: Mon Aug 15 23:08:39 2016 +0200
Add a test case for bug 769955
e-util/test-html-editor-units.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/e-util/test-html-editor-units.c b/e-util/test-html-editor-units.c
index ed03b1a..2c15f02 100644
--- a/e-util/test-html-editor-units.c
+++ b/e-util/test-html-editor-units.c
@@ -2763,6 +2763,26 @@ test_bug_769913 (TestFixture *fixture)
}
}
+static void
+test_bug_769955 (TestFixture *fixture)
+{
+ test_utils_set_clipboard_text
("http://www.example.com/this-is-a-very-long-link-which-should-not-be-wrapped-into-multiple-lines", FALSE);
+
+ if (!test_utils_run_simple_test (fixture,
+ "mode:plain\n"
+ "action:paste\n"
+ "seq:nll\n"
+ "action:style-preformat\n",
+ HTML_PREFIX_PLAIN "<p style=\"width: 71ch;\"><pre>"
+ "<a
href=\"http://www.example.com/this-is-a-very-long-link-which-should-not-be-wrapped-into-multiple-lines\">"
+
"http://www.example.com/this-is-a-very-long-link-which-should-not-be-wrapped-into-multiple-lines</a></pre></p>"
+ "<p style=\"width: 71ch;\"><br></p>" HTML_SUFFIX,
+
"http://www.example.com/this-is-a-very-long-link-which-should-not-be-wrapped-into-multiple-lines")) {
+ g_test_fail ();
+ return;
+ }
+}
+
gint
main (gint argc,
gchar *argv[])
@@ -2923,6 +2943,7 @@ main (gint argc,
add_test ("/bug/760989", test_bug_760989);
add_test ("/bug/769708", test_bug_769708);
add_test ("/bug/769913", test_bug_769913);
+ add_test ("/bug/769955", test_bug_769955);
#undef add_test
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]