gpointing-device-settings r201 - trunk/test
- From: hiikezoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gpointing-device-settings r201 - trunk/test
- Date: Wed, 11 Mar 2009 03:18:51 +0000 (UTC)
Author: hiikezoe
Date: Wed Mar 11 03:18:51 2009
New Revision: 201
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=201&view=rev
Log:
get_device_num_buttons test.
Modified:
trunk/test/test-xinput-utils.c
Modified: trunk/test/test-xinput-utils.c
==============================================================================
--- trunk/test/test-xinput-utils.c (original)
+++ trunk/test/test-xinput-utils.c Wed Mar 11 03:18:51 2009
@@ -7,6 +7,7 @@
void test_get_float_atom (void);
void test_get_device_info (void);
void test_open_device (void);
+void test_get_device_num_buttons (void);
static GError *error;
static XDevice *device;
@@ -50,8 +51,21 @@
void
test_open_device (void)
{
- device = gpds_xinput_utils_open_device ("Macintosh mouse button emulation", &error);
+ device = gpds_xinput_utils_open_device("Macintosh mouse button emulation", &error);
cut_assert(device);
+
+ gcut_assert_error(error);
+}
+
+void
+test_get_device_num_buttons (void)
+{
+ gshort n_buttons;
+
+ n_buttons = gpds_xinput_utils_get_device_num_buttons("Macintosh mouse button emulation", &error);
+ cut_assert_equal_int(32, n_buttons);
+
+ gcut_assert_error(error);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]