seed r233 - trunk/tests
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r233 - trunk/tests
- Date: Mon, 10 Nov 2008 16:05:33 +0000 (UTC)
Author: racarr
Date: Mon Nov 10 16:05:33 2008
New Revision: 233
URL: http://svn.gnome.org/viewvc/seed?rev=233&view=rev
Log:
Add test of defining a signal with a return type.
Modified:
trunk/tests/gtype-signal2.js
Modified: trunk/tests/gtype-signal2.js
==============================================================================
--- trunk/tests/gtype-signal2.js (original)
+++ trunk/tests/gtype-signal2.js Mon Nov 10 16:05:33 2008
@@ -1,7 +1,7 @@
#!/usr/bin/env seed
// Returns: 0
// STDIN:
-// STDOUT:2 Weathermen
+// STDOUT:2 Weathermen\n\[object GtkWindow\]
// STDERR:
Seed.import_namespace("GObject");
@@ -15,7 +15,8 @@
{
var HelloSignalDefinition = {name: "hello",
parameters: [GObject.TYPE_INT,
- GObject.TYPE_STRING]};
+ GObject.TYPE_STRING],
+ return_type: GObject.TYPE_OBJECT};
hello_signal_id = klass.install_signal(HelloSignalDefinition);
@@ -26,7 +27,8 @@
w = new HelloWindow();
w.signal.hello.connect(function(object, number, string)
- {Seed.print(number+ " " + string)});
+ {Seed.print(number+ " " + string);
+ return new Gtk.Window()});
-w.signal.hello.emit(2, "Weathermen");
+Seed.print(w.signal.hello.emit(2, "Weathermen"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]