stktest: Add DisplayText test sequence 1.2

This commit is contained in:
Denis Kenzior 2012-09-28 17:45:56 -05:00
parent 6e428c7d29
commit 99291ade68
1 changed files with 17 additions and 0 deletions

View File

@ -922,6 +922,18 @@ static DBusMessage *test_display_text_11(DBusMessage *msg,
return dbus_message_new_method_return(msg);
}
static DBusMessage *test_display_text_12(DBusMessage *msg,
const char *text,
unsigned char icon_id,
gboolean urgent)
{
STKTEST_AGENT_ASSERT(g_str_equal(text, "Toolkit Test 1"));
STKTEST_AGENT_ASSERT(icon_id == 0);
STKTEST_AGENT_ASSERT(urgent == FALSE);
return stktest_error_busy(msg);
}
static void power_down_reply(DBusPendingCall *call, void *user_data)
{
__stktest_test_next();
@ -980,6 +992,11 @@ static void __stktest_test_init(void)
display_text_response_111,
sizeof(display_text_response_111),
test_display_text_11, expect_response);
stktest_add_test("Display Text 1.2", "DisplayText",
display_text_111, sizeof(display_text_111),
display_text_response_121,
sizeof(display_text_response_121),
test_display_text_12, expect_response);
}
static void test_destroy(gpointer user_data)