This file is indexed.

/usr/share/seed-gtk4-tests/javascript/signals/signal-connect.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
19
20
21
22
23
#!/usr/bin/env seed

testsuite = imports.testsuite
Gtk = imports.gi.Gtk
Gtk.init(Seed.argv)

function handle_opacity_change(obj, gobject, user_data)
{
	testsuite.assert(user_data instanceof Gtk.Button)
	testsuite.assert(user_data === button)
	// XXX: The following test got replaced because of a probably bug in Gtk.
	// widget_set_opacity(X) gets rounded, so when you ask for get_opacity the
	// number might not be the same
	//testsuite.assert(obj.opacity == 0.5)
	testsuite.assert(Math.abs(obj.opacity - 0.5) < 0.01)
}

win = new Gtk.Window()
button = new Gtk.Button()
win.signal.connect("notify::opacity", handle_opacity_change, button)
win.opacity = 0.5

testsuite.checkAsserts(3)