[libpeas] Add an extension test for an invalid property
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Add an extension test for an invalid property
- Date: Sun, 6 Mar 2011 12:58:52 +0000 (UTC)
commit 0f96facfcb652be7a80ba397cdb2f0afc21a554a
Author: Garrett Regier <alias301 gmail com>
Date: Sat Mar 5 00:40:57 2011 -0800
Add an extension test for an invalid property
tests/libpeas/testing/testing-extension.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/libpeas/testing/testing-extension.c b/tests/libpeas/testing/testing-extension.c
index 33e45db..fa9811c 100644
--- a/tests/libpeas/testing/testing-extension.c
+++ b/tests/libpeas/testing/testing-extension.c
@@ -151,6 +151,7 @@ testing_extension_create_invalid_ (PeasEngine *engine)
testing_util_push_log_hook ("*assertion `peas_plugin_info_is_loaded (*)' failed");
testing_util_push_log_hook ("*assertion `G_TYPE_IS_INTERFACE (*)' failed");
testing_util_push_log_hook ("*does not provide a 'IntrospectionUnimplemented' extension");
+ testing_util_push_log_hook ("*type 'IntrospectionCallable' has no property named 'invalid-property'");
info = peas_engine_get_plugin_info (engine, extension_plugin);
@@ -177,6 +178,13 @@ testing_extension_create_invalid_ (PeasEngine *engine)
INTROSPECTION_TYPE_UNIMPLEMENTED,
NULL);
g_assert (!PEAS_IS_EXTENSION (extension));
+
+ /* Interface does not have an 'invalid-property' property */
+ extension = peas_engine_create_extension (engine, info,
+ INTROSPECTION_TYPE_CALLABLE,
+ "invalid-property", "does-not-exist",
+ NULL);
+ g_assert (!PEAS_IS_EXTENSION (extension));
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]