stktest: Add DisplayText test sequence 1.5
authorDenis Kenzior <denkenz@gmail.com>
Fri, 28 Sep 2012 23:15:56 +0000 (18:15 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 3 Oct 2012 14:10:43 +0000 (09:10 -0500)
tools/stktest.c

index aebeaa5..1a9a17f 100644 (file)
@@ -976,6 +976,20 @@ static DBusMessage *test_display_text_14(DBusMessage *msg,
        return dbus_message_new_method_return(msg);
 }
 
+static DBusMessage *test_display_text_15(DBusMessage *msg,
+                                               const char *text,
+                                               unsigned char icon_id,
+                                               gboolean urgent)
+{
+       STKTEST_AGENT_ASSERT(g_str_equal(text, "Toolkit Test 4"));
+       STKTEST_AGENT_ASSERT(icon_id == 0);
+       STKTEST_AGENT_ASSERT(urgent == FALSE);
+
+       pending = dbus_message_ref(msg);
+
+       return NULL;
+}
+
 static void power_down_reply(DBusPendingCall *call, void *user_data)
 {
        __stktest_test_next();
@@ -1049,6 +1063,11 @@ static void __stktest_test_init(void)
                                display_text_response_141,
                                sizeof(display_text_response_141),
                                test_display_text_14, expect_response);
+       stktest_add_test("Display Text 1.5", "DisplayText",
+                               display_text_151, sizeof(display_text_151),
+                               display_text_response_151,
+                               sizeof(display_text_response_151),
+                               test_display_text_15, expect_response);
 }
 
 static void test_destroy(gpointer user_data)