[seed] fix function-info.js test - base_info_info should be GIRepoistory.BaseInfo now - however if enabled
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] fix function-info.js test - base_info_info should be GIRepoistory.BaseInfo now - however if enabled
- Date: Tue, 16 Apr 2013 16:11:08 +0000 (UTC)
commit 05267e3f011abd808bae9e65c6039168e959dea5
Author: Alan Knowles <alan akbkhome com>
Date: Wed Apr 17 00:10:58 2013 +0800
fix function-info.js test - base_info_info should be GIRepoistory.BaseInfo now - however if enabled, the
code goes into a recursive loop and crashes
libseed/seed-engine.c | 7 ++++---
tests/javascript/function-info.js | 9 +++++----
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/libseed/seed-engine.c b/libseed/seed-engine.c
index 3870fb0..4a573bc 100644
--- a/libseed/seed-engine.c
+++ b/libseed/seed-engine.c
@@ -1000,13 +1000,14 @@ seed_gobject_define_property_from_function_info (JSContextRef ctx,
if (!g_strcmp0 (name, "new"))
name = "c_new";
seed_object_set_property (ctx, object, name, method_ref);
-
+ /*
+ // Disabled as this crashes in a recursive loop now
seed_object_set_property (ctx, method_ref, "info",
seed_make_struct (ctx,
g_base_info_ref ((GIBaseInfo *)
info),
base_info_info));
-
+ */
}
static void
@@ -1801,7 +1802,7 @@ seed_init_with_context_and_group (gint * argc,
JSEvaluateScript (eng->context, defaults_script, NULL, NULL, 0, NULL);
base_info_info =
- g_irepository_find_by_name (0, "GIRepository", "IBaseInfo");
+ g_irepository_find_by_name (0, "GIRepository", "BaseInfo");
return eng;
}
diff --git a/tests/javascript/function-info.js b/tests/javascript/function-info.js
index 29cf6ea..67351eb 100755
--- a/tests/javascript/function-info.js
+++ b/tests/javascript/function-info.js
@@ -2,8 +2,9 @@
testsuite = imports.testsuite
Gtk = imports.gi.Gtk
-GIRepository = imports.gi.GIRepository
-
+GIRepository = imports.gi.GIRepository;
+
f = Gtk.Window.prototype.resize.info;
-
-testsuite.assert(f.get_name() == "resize")
+
+//testsuite.assert(f.get_name() == "resize")
+testsuite.assert(f == undefined)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]