seed r119 - trunk/tests
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r119 - trunk/tests
- Date: Wed, 5 Nov 2008 10:19:46 +0000 (UTC)
Author: racarr
Date: Wed Nov 5 10:19:46 2008
New Revision: 119
URL: http://svn.gnome.org/viewvc/seed?rev=119&view=rev
Log:
Type conversion exception test.
Added:
trunk/tests/type-conversion.js (contents, props changed)
Modified:
trunk/tests/Makefile.am
Modified: trunk/tests/Makefile.am
==============================================================================
--- trunk/tests/Makefile.am (original)
+++ trunk/tests/Makefile.am Wed Nov 5 10:19:46 2008
@@ -15,6 +15,7 @@
run-tests.py \
signal.js \
syntax-test.js \
+ type-conversion.js \
native-closure.js
Added: trunk/tests/type-conversion.js
==============================================================================
--- (empty file)
+++ trunk/tests/type-conversion.js Wed Nov 5 10:19:46 2008
@@ -0,0 +1,28 @@
+#!/usr/local/bin/seed
+// Returns: 0
+// STDIN:
+// STDOUT:Javascript number out of range of guchar\nCan not convert Javascript value to boolean\nCan not convert Javascript value to int
+// STDERR:
+
+Seed.import_namespace("Clutter");
+Clutter.init(null, null);
+
+actor = new Clutter.Rectangle();
+tests = [
+ "actor.opacity = 300",
+ "actor.reactive = \"Nutrition\"",
+ "actor.width = actor"];
+
+
+for ( i in tests )
+{
+ try
+ {
+ eval(tests[i])
+ }
+ catch (e)
+ {
+ Seed.print(e.message);
+ }
+
+}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]