tests: Ditch the python test framework, use standard make check with a small
[gnome.seed] / tests / javascript / gtypes / gtype-extraprop.js
1 #!/usr/bin/env seed
2
3 testsuite = imports.testsuite
4 Gtk = imports.gi.Gtk
5
6 Gtk.init(Seed.argv)
7
8 HelloWindow = new GType({
9     parent: Gtk.Window.type,
10     name: "HelloWindow",
11     init: function(self)
12     {
13             testsuite.assert(self.test == 2)
14             testsuite.assert(self.testAgain == "arst")
15     }
16 })
17
18 w = new HelloWindow({test: 2, testAgain: "arst"})
19
20 testsuite.checkAsserts(2)