[seed] Update tests to API change (simple_evaluate has a exception property now).



commit 04a23f6220ce350310eb99c6bdc326b81ed06e9f
Author: Tim Horton <hortont svn gnome org>
Date:   Thu May 7 03:55:08 2009 -0400

    Update tests to API change (simple_evaluate has a exception property now).
---
 tests/c/api-closure.c          |    2 +-
 tests/c/api-js-signal-from-c.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/c/api-closure.c b/tests/c/api-closure.c
index 1006d1c..78364e6 100644
--- a/tests/c/api-closure.c
+++ b/tests/c/api-closure.c
@@ -28,7 +28,7 @@ void closures(TestSimpleFixture * fixture, gconstpointer _data)
 						 (SeedObject) state->eng->global);
 
 	SeedValue *val = seed_simple_evaluate(state->eng->context,
-										  "do_some_math(5, 8.66, -2, 'a')");
+										  "do_some_math(5, 8.66, -2, 'a')", NULL);
 	g_assert(seed_value_to_double(state->eng->context, val, NULL) == -6.5);
 
 	SeedObject *dsm_obj = seed_object_get_property(state->eng->context,
diff --git a/tests/c/api-js-signal-from-c.c b/tests/c/api-js-signal-from-c.c
index 0f3e46e..c268ee4 100644
--- a/tests/c/api-js-signal-from-c.c
+++ b/tests/c/api-js-signal-from-c.c
@@ -34,7 +34,7 @@ void js_signal_from_c(TestSimpleFixture * fixture, gconstpointer _data)
 					      "    {"
 					      "    }};"
 					      "HelloWindow = new GType(HelloWindowType);"
-					      "w = new HelloWindow();");
+					      "w = new HelloWindow();", NULL);
 
 	GObject *obj = seed_value_to_object(state->eng->context, val, NULL);
 
@@ -42,7 +42,7 @@ void js_signal_from_c(TestSimpleFixture * fixture, gconstpointer _data)
 
 	val =
 		seed_simple_evaluate(state->eng->context,
-				     "g = w.signal.hello.emit(2,'Test')");
+				     "g = w.signal.hello.emit(2,'Test')", NULL);
 
 	g_assert(seed_value_to_double(state->eng->context, val, NULL) == 5.12);
 }



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