diff options
Diffstat (limited to 'tests/modules')
-rw-r--r-- | tests/modules/gjsplugin.js | 13 | ||||
-rw-r--r-- | tests/modules/pythonplugin.py | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/modules/gjsplugin.js b/tests/modules/gjsplugin.js new file mode 100644 index 00000000..f5f6c1ed --- /dev/null +++ b/tests/modules/gjsplugin.js @@ -0,0 +1,13 @@ +#!/usr/bin/gjs + +const GObject = imports.gi.GObject; +const Gtk = imports.gi.Gtk; + +var MyJSGrid = GObject.registerClass({ + GTypeName: 'MyJSGrid', +}, class MyJSGrid extends Gtk.Grid { + _init() { + super._init(); + } +}); + diff --git a/tests/modules/pythonplugin.py b/tests/modules/pythonplugin.py new file mode 100644 index 00000000..cb5b6a9d --- /dev/null +++ b/tests/modules/pythonplugin.py @@ -0,0 +1,7 @@ +from gi.repository import Gtk + +class MyPythonBox(Gtk.Box): + __gtype_name__ = 'MyPythonBox' + + def __init__ (self): + Gtk.Box.__init__ (self) |