summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-09-28 18:37:13 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-03 09:10:43 -0500
commit80d00df51d5b7aa991e722495f9a71eeac03e231 (patch)
tree031350811971d9447bd1ff3e1a4e65213471c86e /tools
parent81211f37ec9dd1875dec6b3881284def9bea2e19 (diff)
downloadofono-80d00df51d5b7aa991e722495f9a71eeac03e231.tar.bz2
stktest: Add DisplayText test sequence 1.8
Diffstat (limited to 'tools')
-rw-r--r--tools/stktest.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c
index 9cdfba95..64332db5 100644
--- a/tools/stktest.c
+++ b/tools/stktest.c
@@ -1020,6 +1020,19 @@ static DBusMessage *test_display_text_17(DBusMessage *msg,
return stktest_error_go_back(msg);
}
+static DBusMessage *test_display_text_18(DBusMessage *msg,
+ const char *text,
+ unsigned char icon_id,
+ gboolean urgent)
+{
+ /* oFono gives rich text formatting in HTML */
+ STKTEST_AGENT_ASSERT(g_str_equal(text, "&lt;ABORT&gt;"));
+ STKTEST_AGENT_ASSERT(icon_id == 0);
+ STKTEST_AGENT_ASSERT(urgent == FALSE);
+
+ return stktest_error_end_session(msg);
+}
+
static void power_down_reply(DBusPendingCall *call, void *user_data)
{
__stktest_test_next();
@@ -1108,6 +1121,11 @@ static void __stktest_test_init(void)
display_text_response_171,
sizeof(display_text_response_171),
test_display_text_17, expect_response);
+ stktest_add_test("Display Text 1.8", "DisplayText",
+ display_text_181, sizeof(display_text_181),
+ display_text_response_181,
+ sizeof(display_text_response_181),
+ test_display_text_18, expect_response);
}
static void test_destroy(gpointer user_data)