summaryrefslogtreecommitdiff
path: root/tests/reset-properties/t-reset-arrayv.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reset-properties/t-reset-arrayv.c')
-rw-r--r--tests/reset-properties/t-reset-arrayv.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/reset-properties/t-reset-arrayv.c b/tests/reset-properties/t-reset-arrayv.c
new file mode 100644
index 0000000..bc1e8d6
--- /dev/null
+++ b/tests/reset-properties/t-reset-arrayv.c
@@ -0,0 +1,42 @@
+/*
+ * xfconf
+ *
+ * Copyright (c) 2007 Brian Tarricone <bjt23@cornell.edu>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License ONLY.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "tests-common.h"
+
+int
+main(int argc,
+ char **argv)
+{
+ XfconfChannel *channel;
+
+ if(!xfconf_tests_start())
+ return 1;
+
+ channel = xfconf_channel_new(TEST_CHANNEL_NAME);
+
+ TEST_OPERATION(xfconf_channel_has_property(channel, test_array_property));
+ xfconf_channel_reset_property(channel, test_array_property, FALSE);
+ TEST_OPERATION(!xfconf_channel_has_property(channel, test_array_property));
+
+ g_object_unref(G_OBJECT(channel));
+
+ xfconf_tests_end();
+
+ return 0;
+}