[seed] Adding 'info' back to functions



commit e9b24513085a460eb73526d9243bf9d6827e99a2
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date:   Wed Oct 5 16:38:35 2016 -0300

    Adding 'info' back to functions
    
    Looks like 'info' was removed a while back due to a crash.
    However I couldn't reproduce this crash so I'm adding it back and
    fixing the test

 libseed/seed-engine.c             |    3 ---
 tests/javascript/Makefile.am      |    1 -
 tests/javascript/function-info.js |    8 +++-----
 3 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/libseed/seed-engine.c b/libseed/seed-engine.c
index e1ab54d..4909581 100644
--- a/libseed/seed-engine.c
+++ b/libseed/seed-engine.c
@@ -1097,14 +1097,11 @@ seed_gobject_define_property_from_function_info(JSContextRef ctx,
         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
diff --git a/tests/javascript/Makefile.am b/tests/javascript/Makefile.am
index 939a473..63de9e6 100644
--- a/tests/javascript/Makefile.am
+++ b/tests/javascript/Makefile.am
@@ -77,7 +77,6 @@ TESTS = \
     type-conversion.js
 
 XFAIL_TESTS = \
-       function-info.js \
        gerror.js \
        array-gtype.js \
        constructor-args.js \
diff --git a/tests/javascript/function-info.js b/tests/javascript/function-info.js
index 67351eb..4862636 100755
--- a/tests/javascript/function-info.js
+++ b/tests/javascript/function-info.js
@@ -2,9 +2,7 @@
 
 testsuite = imports.testsuite
 Gtk = imports.gi.Gtk
-GIRepository = imports.gi.GIRepository;
- 
+
 f = Gtk.Window.prototype.resize.info;
- 
-//testsuite.assert(f.get_name() == "resize")
-testsuite.assert(f == undefined)
+
+testsuite.assert(f.get_name() == "resize")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]