seed r324 - trunk/tests
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r324 - trunk/tests
- Date: Mon, 24 Nov 2008 06:15:39 +0000 (UTC)
Author: racarr
Date: Mon Nov 24 06:15:38 2008
New Revision: 324
URL: http://svn.gnome.org/viewvc/seed?rev=324&view=rev
Log:
Add test of nested struct setting.
Added:
trunk/tests/struct-nested-set.js (contents, props changed)
Modified:
trunk/tests/Makefile.am
Modified: trunk/tests/Makefile.am
==============================================================================
--- trunk/tests/Makefile.am (original)
+++ trunk/tests/Makefile.am Mon Nov 24 06:15:38 2008
@@ -1,6 +1,7 @@
EXTRA_DIST = \
argv.js \
compare.js \
+ struct-nested-set.js \
constructor-args.js \
signal-this.js \
struct-set-member.js \
Added: trunk/tests/struct-nested-set.js
==============================================================================
--- (empty file)
+++ trunk/tests/struct-nested-set.js Mon Nov 24 06:15:38 2008
@@ -0,0 +1,17 @@
+#!/usr/local/bin/seed
+// Returns: 0
+// STDIN:
+// STDOUT:\[object seed_union\]\n0\.000000\n300\.000000
+// STDERR:
+Seed.import_namespace("Gdk");
+
+e = new Gdk.Event();
+Seed.print(e);
+
+e.expose.type = Gdk.EventType.expose;
+Seed.print(e.expose.type);
+
+r = new Gdk.Rectangle();
+r.x = 300;
+e.rectangle = r;
+Seed.print(e.rectangle.x);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]