[seed] Fix the rest of the tests
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Fix the rest of the tests
- Date: Sun, 12 Apr 2009 10:49:38 -0400 (EDT)
commit a2a5c2101c1e05223f9a83e366adfdf3ba1d2f0f
Author: Robert Carr <racarr mireia (none)>
Date: Sun Apr 12 10:49:32 2009 -0400
Fix the rest of the tests
---
tests/c/api-js-signal-from-c.c | 3 ++-
tests/javascript/everything.js | 1 +
tests/javascript/gtype-signal-args.js | 3 ++-
tests/javascript/gvalue-argument.js | 3 ++-
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/c/api-js-signal-from-c.c b/tests/c/api-js-signal-from-c.c
index 094e583..0f3e46e 100644
--- a/tests/c/api-js-signal-from-c.c
+++ b/tests/c/api-js-signal-from-c.c
@@ -16,7 +16,8 @@ void js_signal_from_c(TestSimpleFixture * fixture, gconstpointer _data)
TestSharedState *state = (TestSharedState *) _data;
SeedValue *val = seed_simple_evaluate(state->eng->context,
- "Seed.import_namespace(\"Gtk\");"
+ "Gtk = imports.gi.Gtk;"
+ "GObject = imports.gi.GObject;"
"Gtk.init(null, null);"
"HelloWindowType = {"
" parent: Gtk.Window.type,"
diff --git a/tests/javascript/everything.js b/tests/javascript/everything.js
index 7aac9ea..b24ce37 100755
--- a/tests/javascript/everything.js
+++ b/tests/javascript/everything.js
@@ -5,6 +5,7 @@
// STDERR:
Everything = imports.gi.Everything;
+GObject = imports.gi.GObject;
with(Everything)
{
diff --git a/tests/javascript/gtype-signal-args.js b/tests/javascript/gtype-signal-args.js
index 4a970c0..d14a0cd 100755
--- a/tests/javascript/gtype-signal-args.js
+++ b/tests/javascript/gtype-signal-args.js
@@ -5,9 +5,10 @@
// STDERR:
Gtk = imports.gi.Gtk;
+GObject = imports.gi.GObject;
Gtk.init(null, null);
-HelloWindow = new GType({
+HelloWindow = new GType({
parent: Gtk.Window.type,
name: "HelloWindow",
class_init: function(klass, prototype)
diff --git a/tests/javascript/gvalue-argument.js b/tests/javascript/gvalue-argument.js
index 7681196..e0d0c29 100755
--- a/tests/javascript/gvalue-argument.js
+++ b/tests/javascript/gvalue-argument.js
@@ -5,6 +5,7 @@
// STDERR:
Gtk = imports.gi.Gtk;
+GObject = imports.gi.GObject
Gtk.init(null, null);
var s = new Gtk.ListStore();
@@ -13,5 +14,5 @@ s.set_column_types(2, [GObject.TYPE_STRING, GObject.TYPE_INT]);
var iter = new Gtk.TreeIter();
s.append(iter);
-s.set_value(iter, 0, "Hi");
+s.set_value(iter, 0, "Hi");
s.set_value(iter, 1, [GObject.TYPE_INT, 10]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]