seed r294 - in trunk: libseed tests
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r294 - in trunk: libseed tests
- Date: Sat, 22 Nov 2008 01:49:53 +0000 (UTC)
Author: racarr
Date: Sat Nov 22 01:49:53 2008
New Revision: 294
URL: http://svn.gnome.org/viewvc/seed?rev=294&view=rev
Log:
Add struct offset test.
Added:
trunk/tests/struct-offsets.js (contents, props changed)
Modified:
trunk/libseed/seed-structs.c
trunk/tests/Makefile.am
Modified: trunk/libseed/seed-structs.c
==============================================================================
--- trunk/libseed/seed-structs.c (original)
+++ trunk/libseed/seed-structs.c Sat Nov 22 01:49:53 2008
@@ -105,7 +105,6 @@
if (!g_field_info_get_field(field, priv->pointer,
&field_value))
{
- // EXCEPTION
g_free(cproperty_name);
return JSValueMakeNull(eng->context);
}
Modified: trunk/tests/Makefile.am
==============================================================================
--- trunk/tests/Makefile.am (original)
+++ trunk/tests/Makefile.am Sat Nov 22 01:49:53 2008
@@ -3,6 +3,7 @@
compare.js \
constructor-args.js \
signal-this.js \
+ struct-offsets.js \
gtype-typerror.js \
gtype-signal.js \
signal-userdata.js \
Added: trunk/tests/struct-offsets.js
==============================================================================
--- (empty file)
+++ trunk/tests/struct-offsets.js Sat Nov 22 01:49:53 2008
@@ -0,0 +1,15 @@
+#!/usr/local/bin/seed
+// Returns: 0
+// STDIN:
+// STDOUT:255\.000000
+// STDERR:
+// Returns: 0
+// STDIN:
+// STDOUT:
+// STDERR:\/bin\/sh: \.\/struct-offsets_\.c: Permission denied
+Seed.import_namespace("Clutter");
+
+c = Clutter.Color._new();
+Clutter.color_parse("red", c);
+
+Seed.print(c.red);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]