seed r328 - trunk/tests



Author: racarr
Date: Mon Nov 24 06:56:51 2008
New Revision: 328
URL: http://svn.gnome.org/viewvc/seed?rev=328&view=rev

Log:
Struct constructor test.


Added:
   trunk/tests/struct-constructor.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:56:51 2008
@@ -2,6 +2,7 @@
 	argv.js \
     compare.js \
     struct-nested-set.js \
+    struct-constructor.js \
     constructor-args.js \
     signal-this.js \
     struct-set-member.js \

Added: trunk/tests/struct-constructor.js
==============================================================================
--- (empty file)
+++ trunk/tests/struct-constructor.js	Mon Nov 24 06:56:51 2008
@@ -0,0 +1,12 @@
+#!/usr/local/bin/seed
+// Returns: 0
+// STDIN:
+// STDOUT:100\.000000\n90\.000000\n80\.000000
+// STDERR:
+Seed.import_namespace("Gdk");
+
+c = new Gdk.Color({red: 100});
+Seed.print(c.red);
+c = new Gdk.Color({red: 90, blue: 80});
+Seed.print(c.red);
+Seed.print(c.blue);



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