[seed] Add regression test for BGO 593182



commit 63c58af6a128168fe79eb7be0cea048ecdb1c712
Author: Robert Carr <racarr gnome org>
Date:   Thu Dec 17 15:40:07 2009 -0500

    Add regression test for BGO 593182

 tests/javascript/gtypes/Makefile.am               |    1 +
 tests/javascript/gtypes/gtype-gtype-class-init.js |   30 +++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/tests/javascript/gtypes/Makefile.am b/tests/javascript/gtypes/Makefile.am
index a04ee6d..7347f94 100644
--- a/tests/javascript/gtypes/Makefile.am
+++ b/tests/javascript/gtypes/Makefile.am
@@ -9,5 +9,6 @@ EXTRA_DIST = \
 	gtype-property-nice.js \
 	gtype-self.js \
 	gtype-extraprop.js \
+	gtype-gtype-class-init.js \
 	gtype-signal.js
 
diff --git a/tests/javascript/gtypes/gtype-gtype-class-init.js b/tests/javascript/gtypes/gtype-gtype-class-init.js
new file mode 100755
index 0000000..8740bb2
--- /dev/null
+++ b/tests/javascript/gtypes/gtype-gtype-class-init.js
@@ -0,0 +1,30 @@
+#!/usr/bin/env seed
+// Returns: 0
+// STDIN:
+// STDOUT:Class init
+// STDERR:
+Gtk = imports.gi.Gtk;
+Gtk.init(Seed.argv);
+
+HelloWindowType = {
+ parent: Gtk.Window.type,
+ name: "HelloWindow",
+ init: function(){
+  }
+};
+
+HelloWindow = new GType(HelloWindowType);
+w = new HelloWindow();
+
+InheritedWindowType = {
+ parent: HelloWindow.type,
+ name: "InheritedWindow",
+ class_init: function(klass, prototype) {print("Class init")},
+ init: function(){
+  }
+};
+
+InheritedWindow = new GType(InheritedWindowType);
+
+b = new InheritedWindow();
+



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