stktest: Add DisplayText test sequence 1.3

This commit is contained in:
Denis Kenzior 2012-09-28 17:50:57 -05:00
parent 99291ade68
commit bac65ffdf7
1 changed files with 17 additions and 0 deletions

View File

@ -934,6 +934,18 @@ static DBusMessage *test_display_text_12(DBusMessage *msg,
return stktest_error_busy(msg);
}
static DBusMessage *test_display_text_13(DBusMessage *msg,
const char *text,
unsigned char icon_id,
gboolean urgent)
{
STKTEST_AGENT_ASSERT(g_str_equal(text, "Toolkit Test 2"));
STKTEST_AGENT_ASSERT(icon_id == 0);
STKTEST_AGENT_ASSERT(urgent == TRUE);
return dbus_message_new_method_return(msg);
}
static void power_down_reply(DBusPendingCall *call, void *user_data)
{
__stktest_test_next();
@ -997,6 +1009,11 @@ static void __stktest_test_init(void)
display_text_response_121,
sizeof(display_text_response_121),
test_display_text_12, expect_response);
stktest_add_test("Display Text 1.3", "DisplayText",
display_text_131, sizeof(display_text_131),
display_text_response_131,
sizeof(display_text_response_131),
test_display_text_13, expect_response);
}
static void test_destroy(gpointer user_data)