gpointing-device-settings r205 - trunk/test
- From: hiikezoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gpointing-device-settings r205 - trunk/test
- Date: Wed, 11 Mar 2009 03:19:07 +0000 (UTC)
Author: hiikezoe
Date: Wed Mar 11 03:19:07 2009
New Revision: 205
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=205&view=rev
Log:
cleanup.
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:19:07 2009
@@ -12,6 +12,8 @@
static GError *error;
static XDevice *device;
+#define DEVICE_NAME "Macintosh mouse button emulation"
+
void
setup (void)
{
@@ -44,14 +46,14 @@
test_get_device_info (void)
{
XDeviceInfo *device_info = NULL;
- device_info = gpds_xinput_utils_get_device_info("Macintosh mouse button emulation");
+ device_info = gpds_xinput_utils_get_device_info(DEVICE_NAME);
cut_assert(device_info);
}
void
test_open_device (void)
{
- device = gpds_xinput_utils_open_device("Macintosh mouse button emulation", &error);
+ device = gpds_xinput_utils_open_device(DEVICE_NAME, &error);
cut_assert(device);
gcut_assert_error(error);
@@ -62,10 +64,10 @@
{
gshort n_buttons;
- n_buttons = gpds_xinput_utils_get_device_num_buttons("Macintosh mouse button emulation", &error);
- cut_assert_equal_int(32, n_buttons);
-
+ n_buttons = gpds_xinput_utils_get_device_num_buttons(DEVICE_NAME, &error);
gcut_assert_error(error);
+
+ cut_assert_equal_int(32, n_buttons);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]