/usr/share/seed-gtk4-tests/javascript/signals/signal-userdata.js is in libseed-gtk4-0 4.0.0+20161014+6c77960+dfsg1-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/usr/bin/env seed
testsuite = imports.testsuite
Gtk = imports.gi.Gtk;
JSON = imports.JSON;
Gtk.init(Seed.argv);
function userdata_test(widget, user_data)
{
testsuite.assert(user_data.Hello == "World")
}
w = new Gtk.Window();
w.signal.map.connect(userdata_test, {Hello: "World"});
w.show();
testsuite.checkAsserts(1)
|