[seed] Tests still don't all pass
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Tests still don't all pass
- Date: Sun, 12 Apr 2009 10:17:32 -0400 (EDT)
commit 4a9f2f1f956e114dbb546b7788276a5862e0e825
Author: Robert Carr <racarr mireia (none)>
Date: Sun Apr 12 10:17:23 2009 -0400
Tests still don't all pass
---
extensions/Clutter.js | 2 +-
extensions/GObject.js | 2 +-
extensions/Gio.js | 2 +-
extensions/Gtk.js | 2 +-
libseed/seed-engine.c | 8 ++------
tests/javascript/array-gtype.js | 4 ++--
tests/javascript/closure-finalization.js | 2 +-
tests/javascript/compare.js | 2 +-
tests/javascript/constructor-args.js | 2 +-
tests/javascript/constructor-prototype.js | 2 +-
tests/javascript/enum.js | 2 +-
tests/javascript/everything.js | 2 +-
tests/javascript/function-info.js | 4 ++--
tests/javascript/gdk-event.js | 4 ++--
tests/javascript/gerror.js | 2 +-
tests/javascript/gobject-scope.js | 2 +-
tests/javascript/gtype-class-init-exception.js | 2 +-
tests/javascript/gtype-property.js | 4 ++--
tests/javascript/gtype-signal-args.js | 2 +-
tests/javascript/gtype-signal-exception.js | 2 +-
tests/javascript/gtype-signal.js | 2 +-
tests/javascript/gtype-typerror.js | 2 +-
tests/javascript/gtype.js | 2 +-
tests/javascript/gvalue-argument.js | 2 +-
tests/javascript/introspect.js | 2 +-
tests/javascript/json-constructor.js | 4 ++--
tests/javascript/list-test.js | 2 +-
tests/javascript/native-closure-exception.js | 2 +-
tests/javascript/native-closure.js | 2 +-
tests/javascript/object-info.js | 4 ++--
tests/javascript/out-test.js | 2 +-
tests/javascript/property-benchmark.js | 2 +-
tests/javascript/property-glib-exception.js | 2 +-
tests/javascript/readline.js | 2 +-
tests/javascript/readline_bind.js | 2 +-
tests/javascript/signal-connect.js | 2 +-
tests/javascript/signal-exception.js | 2 +-
tests/javascript/signal-expects.js | 2 +-
tests/javascript/signal-userdata.js | 2 +-
tests/javascript/signal.js | 2 +-
tests/javascript/sqlite.js | 4 ++--
tests/javascript/struct-constructor.js | 2 +-
tests/javascript/struct-enumerate.js | 2 +-
tests/javascript/struct-nested-set.js | 2 +-
tests/javascript/struct-offsets.js | 2 +-
tests/javascript/struct-set-member.js | 2 +-
tests/javascript/struct-union-enumerate.js | 2 +-
tests/javascript/type-conversion.js | 2 +-
48 files changed, 56 insertions(+), 60 deletions(-)
diff --git a/extensions/Clutter.js b/extensions/Clutter.js
index e49bb75..8ab808a 100644
--- a/extensions/Clutter.js
+++ b/extensions/Clutter.js
@@ -1,4 +1,4 @@
-const Clutter = imports.gi.Clutter;
+Clutter = imports.gi.Clutter;
Clutter.Actor.prototype.animate = function(mode, duration, json)
{
diff --git a/extensions/GObject.js b/extensions/GObject.js
index 6fd4893..d8d4e9f 100644
--- a/extensions/GObject.js
+++ b/extensions/GObject.js
@@ -1,4 +1,4 @@
-const GObject = imports.gi.GObject;
+GObject = imports.gi.GObject;
(function()
{
diff --git a/extensions/Gio.js b/extensions/Gio.js
index 5372148..cc3db2a 100755
--- a/extensions/Gio.js
+++ b/extensions/Gio.js
@@ -1,4 +1,4 @@
-const Gio = imports.gi.Gio;
+Gio = imports.gi.Gio;
(function()
{
diff --git a/extensions/Gtk.js b/extensions/Gtk.js
index e17f6b7..a34bb8d 100755
--- a/extensions/Gtk.js
+++ b/extensions/Gtk.js
@@ -1,4 +1,4 @@
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
(function()
{
diff --git a/libseed/seed-engine.c b/libseed/seed-engine.c
index 15b61b9..102c699 100644
--- a/libseed/seed-engine.c
+++ b/libseed/seed-engine.c
@@ -1156,10 +1156,7 @@ seed_gi_import_namespace (JSContextRef ctx,
}
jsextension =
- g_strdup_printf ("try{Seed.include(\"/usr/share/seed/%s.js\");}"
- "catch(e){}"
- "Seed.include(\"/usr/local/share/seed/%s.js\");",
- namespace, namespace);
+ g_strdup_printf("imports.extensions.%s", namespace);
extension_script = JSStringCreateWithUTF8CString (jsextension);
JSEvaluateScript (ctx, extension_script, NULL, NULL, 0, NULL);
JSStringRelease (extension_script);
@@ -1599,8 +1596,7 @@ seed_init_with_context_group (gint * argc,
seed_gtype_init (eng);
defaults_script =
- JSStringCreateWithUTF8CString ("const GObject = imports.gi.GObject;"
- "try{Seed.include(\"/usr/share/"
+ JSStringCreateWithUTF8CString ("try{Seed.include(\"/usr/share/"
"seed/extensions/Seed.js\");} catch(e){}"
"Seed.include(\"/usr/local/share"
"/seed/extensions/Seed.js\");");
diff --git a/tests/javascript/array-gtype.js b/tests/javascript/array-gtype.js
index 9c74648..8644721 100755
--- a/tests/javascript/array-gtype.js
+++ b/tests/javascript/array-gtype.js
@@ -4,8 +4,8 @@
// STDOUT:
// STDERR:
-const Gtk = imports.gi.Gtk;
-const GObject = imports.gi.GObject;
+Gtk = imports.gi.Gtk;
+GObject = imports.gi.GObject;
Gtk.init(null, null);
diff --git a/tests/javascript/closure-finalization.js b/tests/javascript/closure-finalization.js
index 08903be..01d6bb4 100755
--- a/tests/javascript/closure-finalization.js
+++ b/tests/javascript/closure-finalization.js
@@ -4,7 +4,7 @@
// STDOUT:\[object GtkVBox\]
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
diff --git a/tests/javascript/compare.js b/tests/javascript/compare.js
index 9c4244d..68d2d41 100755
--- a/tests/javascript/compare.js
+++ b/tests/javascript/compare.js
@@ -4,7 +4,7 @@
// STDOUT:0.000000\n1.000000
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
var a = new Gtk.Button();
diff --git a/tests/javascript/constructor-args.js b/tests/javascript/constructor-args.js
index 0f88024..20c1bd2 100755
--- a/tests/javascript/constructor-args.js
+++ b/tests/javascript/constructor-args.js
@@ -4,7 +4,7 @@
// STDOUT:Constructor expects 1 argument, got 2\nConstructor expects object as argument
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
try
diff --git a/tests/javascript/constructor-prototype.js b/tests/javascript/constructor-prototype.js
index c0e6d9a..9f72b67 100755
--- a/tests/javascript/constructor-prototype.js
+++ b/tests/javascript/constructor-prototype.js
@@ -4,7 +4,7 @@
// STDOUT:Hello World
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
Gtk.Window.prototype.hello = "Hello World";
diff --git a/tests/javascript/enum.js b/tests/javascript/enum.js
index d71dc26..e74ce3c 100755
--- a/tests/javascript/enum.js
+++ b/tests/javascript/enum.js
@@ -4,7 +4,7 @@
// STDOUT:2.000000
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
b = new Gtk.Button();
diff --git a/tests/javascript/everything.js b/tests/javascript/everything.js
index fffca21..7aac9ea 100755
--- a/tests/javascript/everything.js
+++ b/tests/javascript/everything.js
@@ -4,7 +4,7 @@
// STDOUT:1\.000000\n-124\.000000\n129\.000000\n-1235\.000000\n1387\.000000\n-123435\.000000\n133487\.000000\n-16323375\.000000\n13873737\.000000\n-16325\.000000\n33737\.000000\n-16325\.000000\n33737\.000000\n12\.000000\n143\.000000\n-1853\.123291\n-134543853\.123340\n8\.000000\n\["åäö","\/etc\/fstab"\]\n\["1","2","3"\]\n\["1","2","3"\]\n\["1","2","3"\]\n\["1","2","3"\]\n1,2,3\n5\.000000\n0\.000000\n123\.000000\n0\.000000\n1\.000000\n42\.000000\n1\.000000\n4\.000000\n15\.000000\n120\.000000\n120\.235700\n42\.000000\n19\.000000
// STDERR:
-const Everything = imports.gi.Everything;
+Everything = imports.gi.Everything;
with(Everything)
{
diff --git a/tests/javascript/function-info.js b/tests/javascript/function-info.js
index 1531081..3a95be5 100755
--- a/tests/javascript/function-info.js
+++ b/tests/javascript/function-info.js
@@ -4,8 +4,8 @@
// STDOUT:resize
// STDERR:
-const Gtk = imports.gi.Gtk;
-const GIRepository = imports.gi.GIRepository;
+Gtk = imports.gi.Gtk;
+GIRepository = imports.gi.GIRepository;
f = Gtk.Window.prototype.resize.info;
diff --git a/tests/javascript/gdk-event.js b/tests/javascript/gdk-event.js
index 7e38d41..16339c4 100755
--- a/tests/javascript/gdk-event.js
+++ b/tests/javascript/gdk-event.js
@@ -4,8 +4,8 @@
// STDOUT:\[object GdkWindow\]\n\[object GdkWindow\]\n1\.000000\n200\.000000
// STDERR:
-const Gtk = imports.gi.Gtk;
-const Gdk = imports.gi.Gdk;
+Gtk = imports.gi.Gtk;
+Gdk = imports.gi.Gdk;
Gtk.init(null, null);
function paint(wdg, evt)
diff --git a/tests/javascript/gerror.js b/tests/javascript/gerror.js
index 4f64f70..abcd237 100755
--- a/tests/javascript/gerror.js
+++ b/tests/javascript/gerror.js
@@ -4,7 +4,7 @@
// STDOUT:GIoError Error opening file .* Is a directory
// STDERR:
-const Gio = imports.gi.Gio;
+Gio = imports.gi.Gio;
try
{
diff --git a/tests/javascript/gobject-scope.js b/tests/javascript/gobject-scope.js
index 45f1fb7..9362632 100755
--- a/tests/javascript/gobject-scope.js
+++ b/tests/javascript/gobject-scope.js
@@ -4,7 +4,7 @@
// STDOUT:
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
diff --git a/tests/javascript/gtype-class-init-exception.js b/tests/javascript/gtype-class-init-exception.js
index 877a5a8..93b3277 100755
--- a/tests/javascript/gtype-class-init-exception.js
+++ b/tests/javascript/gtype-class-init-exception.js
@@ -4,7 +4,7 @@
// STDOUT:
// STDERR:\n\*\* \(seed:[0-9]+\): WARNING \*\*: Exception in class init closure\. Line 14 in .*\/gtype-class-init-exception\.js: ReferenceError Can't find variable: notAVariable
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
HelloWindowType = {
diff --git a/tests/javascript/gtype-property.js b/tests/javascript/gtype-property.js
index c6899eb..97583a2 100755
--- a/tests/javascript/gtype-property.js
+++ b/tests/javascript/gtype-property.js
@@ -4,8 +4,8 @@
// STDOUT:1\.000000\n0\.000000
// STDERR:
-const Gtk = imports.gi.Gtk;
-const GObject = imports.gi.GObject;
+Gtk = imports.gi.Gtk;
+GObject = imports.gi.GObject;
Gtk.init(null, null);
HelloWindowType = {
diff --git a/tests/javascript/gtype-signal-args.js b/tests/javascript/gtype-signal-args.js
index edffa37..4a970c0 100755
--- a/tests/javascript/gtype-signal-args.js
+++ b/tests/javascript/gtype-signal-args.js
@@ -4,7 +4,7 @@
// STDOUT:2 Test\n\[object GtkWindow\]
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
HelloWindow = new GType({
diff --git a/tests/javascript/gtype-signal-exception.js b/tests/javascript/gtype-signal-exception.js
index 93ae1c8..dac0a62 100755
--- a/tests/javascript/gtype-signal-exception.js
+++ b/tests/javascript/gtype-signal-exception.js
@@ -4,7 +4,7 @@
// STDOUT:Signal definition needs name property\nSignal definition needs name property
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
HelloWindowType = {
diff --git a/tests/javascript/gtype-signal.js b/tests/javascript/gtype-signal.js
index d92ab89..005a587 100755
--- a/tests/javascript/gtype-signal.js
+++ b/tests/javascript/gtype-signal.js
@@ -4,7 +4,7 @@
// STDOUT:Hello\nGoodbye
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
HelloWindowType = {
diff --git a/tests/javascript/gtype-typerror.js b/tests/javascript/gtype-typerror.js
index 6be18e2..ef48789 100755
--- a/tests/javascript/gtype-typerror.js
+++ b/tests/javascript/gtype-typerror.js
@@ -4,7 +4,7 @@
// STDOUT:GType constructor expected GType for parent
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
HelloWindowType = {
diff --git a/tests/javascript/gtype.js b/tests/javascript/gtype.js
index ed6d174..d2e2a2b 100755
--- a/tests/javascript/gtype.js
+++ b/tests/javascript/gtype.js
@@ -4,7 +4,7 @@
// STDOUT:In klass init\nIn constructor for \[object HelloWindow\]\nPrototypes!\nIn map, verifying widget\.title : Hello!
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
HelloWindowType = {
diff --git a/tests/javascript/gvalue-argument.js b/tests/javascript/gvalue-argument.js
index 27c4978..7681196 100755
--- a/tests/javascript/gvalue-argument.js
+++ b/tests/javascript/gvalue-argument.js
@@ -4,7 +4,7 @@
// STDOUT:
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
var s = new Gtk.ListStore();
diff --git a/tests/javascript/introspect.js b/tests/javascript/introspect.js
index 8d528c3..a8b2d2a 100755
--- a/tests/javascript/introspect.js
+++ b/tests/javascript/introspect.js
@@ -4,7 +4,7 @@
// STDOUT:\{"name":"set_opacity","return_type":"void","args":\{"0":\{"type":"double"\}\}\}
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
win = new Gtk.Window();
Seed.print(JSON.stringify(Seed.introspect(win.set_opacity)));
diff --git a/tests/javascript/json-constructor.js b/tests/javascript/json-constructor.js
index 87dc3a8..55e2794 100755
--- a/tests/javascript/json-constructor.js
+++ b/tests/javascript/json-constructor.js
@@ -4,8 +4,8 @@
// STDOUT:JSON Win!
// STDERR:
-const Gtk = imports.gi.Gtk;
-const GLib = imports.gi.GLib;
+Gtk = imports.gi.Gtk;
+GLib = imports.gi.GLib;
Gtk.init(null, null);
window = new Gtk.Window({title: "JSON Win!"});
diff --git a/tests/javascript/list-test.js b/tests/javascript/list-test.js
index 926ceea..8b9c857 100755
--- a/tests/javascript/list-test.js
+++ b/tests/javascript/list-test.js
@@ -4,7 +4,7 @@
// STDOUT:\[object GtkButton\],\[object GtkButton\]\n\[object GtkButton\]\n\[object GtkButton\]
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
diff --git a/tests/javascript/native-closure-exception.js b/tests/javascript/native-closure-exception.js
index 266cd6a..02dcd03 100755
--- a/tests/javascript/native-closure-exception.js
+++ b/tests/javascript/native-closure-exception.js
@@ -4,7 +4,7 @@
// STDOUT:
// STDERR:\n\*\* \(seed:[0-9]+\): WARNING \*\*: Exception in closure marshal\. Line 12 in .*\/native-closure-exception\.js: ReferenceError Can't find variable: a
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
w = new Gtk.Window();
diff --git a/tests/javascript/native-closure.js b/tests/javascript/native-closure.js
index e8b74cd..d5ef30b 100755
--- a/tests/javascript/native-closure.js
+++ b/tests/javascript/native-closure.js
@@ -4,7 +4,7 @@
// STDOUT:\[object GtkLabel\]\n\[object GtkButton\]
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
w = new Gtk.Window();
diff --git a/tests/javascript/object-info.js b/tests/javascript/object-info.js
index 72e95b0..ffe65b9 100755
--- a/tests/javascript/object-info.js
+++ b/tests/javascript/object-info.js
@@ -4,8 +4,8 @@
// STDOUT:Window implements interfaces\nInterface: (Buildable|ImplementorIface)\nInterface: (Buildable|ImplementorIface)
// STDERR:
-const Gtk = imports.gi.Gtk;
-const GIRepository = imports.gi.GIRepository;
+Gtk = imports.gi.Gtk;
+GIRepository = imports.gi.GIRepository;
info = GIRepository.irepository_find_by_gtype(null, Gtk.Window.type);
Seed.print(GIRepository.base_info_get_name(info) + " implements interfaces");
diff --git a/tests/javascript/out-test.js b/tests/javascript/out-test.js
index abb4235..78a4cb7 100755
--- a/tests/javascript/out-test.js
+++ b/tests/javascript/out-test.js
@@ -4,7 +4,7 @@
// STDOUT:5 100
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
w = new Gtk.Window({width_request: 5, height_request: 100});
diff --git a/tests/javascript/property-benchmark.js b/tests/javascript/property-benchmark.js
index c49e35a..0f3c533 100755
--- a/tests/javascript/property-benchmark.js
+++ b/tests/javascript/property-benchmark.js
@@ -4,7 +4,7 @@
// STDOUT:
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
window = new Gtk.Window();
diff --git a/tests/javascript/property-glib-exception.js b/tests/javascript/property-glib-exception.js
index 2599f03..c6f01ea 100755
--- a/tests/javascript/property-glib-exception.js
+++ b/tests/javascript/property-glib-exception.js
@@ -4,7 +4,7 @@
// STDOUT:
// STDERR:\n\*\* \(seed:[0-9]+\): CRITICAL \*\*: PropertyError\. value "3\.000000" of type `gdouble' is invalid or out of range for property `opacity' of type `gdouble' in .*\/property-glib-exception\.js at line 10
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
window = new Gtk.Window();
diff --git a/tests/javascript/readline.js b/tests/javascript/readline.js
index 470c905..b2bcdc1 100755
--- a/tests/javascript/readline.js
+++ b/tests/javascript/readline.js
@@ -4,5 +4,5 @@
// STDOUT:4.000000
// STDERR:
-const readline = imports.readline;
+readline = imports.readline;
Seed.print(eval(readline.readline("")));
diff --git a/tests/javascript/readline_bind.js b/tests/javascript/readline_bind.js
index 103ae96..8b47b5d 100755
--- a/tests/javascript/readline_bind.js
+++ b/tests/javascript/readline_bind.js
@@ -4,6 +4,6 @@
// STDOUT:Got here!\n4.000000
// STDERR:
-const readline = imports.readline;
+readline = imports.readline;
readline.bind("a", function () { Seed.print("Got here!"); });
Seed.print(eval(readline.readline("")));
diff --git a/tests/javascript/signal-connect.js b/tests/javascript/signal-connect.js
index c7c1fa1..d13992c 100755
--- a/tests/javascript/signal-connect.js
+++ b/tests/javascript/signal-connect.js
@@ -4,7 +4,7 @@
// STDOUT:\[object GtkButton\]\n1\.000000\n0\.500000
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
function handle_opacity_change(obj, gobject, user_data)
diff --git a/tests/javascript/signal-exception.js b/tests/javascript/signal-exception.js
index 0f866a6..18181bf 100755
--- a/tests/javascript/signal-exception.js
+++ b/tests/javascript/signal-exception.js
@@ -4,7 +4,7 @@
// STDOUT:
// STDERR:\n\*\* \(seed:[0-9]+\): WARNING \*\*: Exception in signal handler. Line 11 in .*\/signal-exception.js: ReferenceError Left side of assignment is not a reference\.
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
w = new Gtk.Window();
diff --git a/tests/javascript/signal-expects.js b/tests/javascript/signal-expects.js
index a0c6024..67d7f40 100755
--- a/tests/javascript/signal-expects.js
+++ b/tests/javascript/signal-expects.js
@@ -4,7 +4,7 @@
// STDOUT:In signal
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
function expects_test(widget, user_data)
diff --git a/tests/javascript/signal-userdata.js b/tests/javascript/signal-userdata.js
index 486b5c2..f0192ae 100755
--- a/tests/javascript/signal-userdata.js
+++ b/tests/javascript/signal-userdata.js
@@ -4,7 +4,7 @@
// STDOUT:\{"Hello":"World"\}
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
function userdata_test(widget, user_data)
diff --git a/tests/javascript/signal.js b/tests/javascript/signal.js
index 66a0098..abc07a2 100755
--- a/tests/javascript/signal.js
+++ b/tests/javascript/signal.js
@@ -4,7 +4,7 @@
// STDOUT:Window mapped.
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
function mapped(window)
diff --git a/tests/javascript/sqlite.js b/tests/javascript/sqlite.js
index e8565bc..1ac1a03 100755
--- a/tests/javascript/sqlite.js
+++ b/tests/javascript/sqlite.js
@@ -3,8 +3,8 @@
// STDIN:
// STDOUT:\{"t1key":"1","data":"This is sample data","num":"3\.0","timeEnter":""\}\n\{"t1key":"2","data":"More sample data","num":"6\.0","timeEnter":""\}\n\{"t1key":"3","data":"And a little more","num":"9\.0","timeEnter":""\}
// STDERR:
-const Gio = imports.gi.Gio;
-const sqlite = imports.sqlite;
+Gio = imports.gi.Gio;
+sqlite = imports.sqlite;
try
{
diff --git a/tests/javascript/struct-constructor.js b/tests/javascript/struct-constructor.js
index 8d17046..435db96 100755
--- a/tests/javascript/struct-constructor.js
+++ b/tests/javascript/struct-constructor.js
@@ -4,7 +4,7 @@
// STDOUT:100\.000000\n90\.000000\n80\.000000
// STDERR:
-const Gdk = imports.gi.Gdk;
+Gdk = imports.gi.Gdk;
c = new Gdk.Color({red: 100});
Seed.print(c.red);
diff --git a/tests/javascript/struct-enumerate.js b/tests/javascript/struct-enumerate.js
index 6b7d449..aac501e 100755
--- a/tests/javascript/struct-enumerate.js
+++ b/tests/javascript/struct-enumerate.js
@@ -4,7 +4,7 @@
// STDOUT:x\ny\nwidth\nheight\nintersect\nunion
// STDERR:
-const Gdk = imports.gi.Gdk;
+Gdk = imports.gi.Gdk;
r = new Gdk.Rectangle();
for (prop in r)
diff --git a/tests/javascript/struct-nested-set.js b/tests/javascript/struct-nested-set.js
index 6309fa1..a7d4d85 100755
--- a/tests/javascript/struct-nested-set.js
+++ b/tests/javascript/struct-nested-set.js
@@ -4,7 +4,7 @@
// STDOUT:\[object seed_union\]\n2\.000000\n300\.000000
// STDERR:
-const Gdk = imports.gi.Gdk;
+Gdk = imports.gi.Gdk;
e = new Gdk.Event();
Seed.print(e);
diff --git a/tests/javascript/struct-offsets.js b/tests/javascript/struct-offsets.js
index 363bc75..53b4d14 100755
--- a/tests/javascript/struct-offsets.js
+++ b/tests/javascript/struct-offsets.js
@@ -4,7 +4,7 @@
// STDOUT:17\.000000\n0\.000000
// STDERR:
-const Pango = imports.gi.Pango;
+Pango = imports.gi.Pango;
c = new Pango.Color();
c.red = 17;
diff --git a/tests/javascript/struct-set-member.js b/tests/javascript/struct-set-member.js
index e9712b1..6b9eb3c 100755
--- a/tests/javascript/struct-set-member.js
+++ b/tests/javascript/struct-set-member.js
@@ -4,7 +4,7 @@
// STDOUT:0\.000000\n200\.000000
// STDERR:
-const Gdk = imports.gi.Gdk;
+Gdk = imports.gi.Gdk;
color = new Gdk.Color();
Seed.print(color.red);
diff --git a/tests/javascript/struct-union-enumerate.js b/tests/javascript/struct-union-enumerate.js
index 5563681..8f91e6e 100755
--- a/tests/javascript/struct-union-enumerate.js
+++ b/tests/javascript/struct-union-enumerate.js
@@ -4,7 +4,7 @@
// STDOUT:\* type\n\* any\n \* type\n \* window\n \* send_event\n\* expose\n \* type\n \* window\n \* send_event\n \* area\n \* x\n \* y\n \* width\n \* height\n \* intersect\n \* union\n \* region\n \* copy\n \* destroy\n \* get_clipbox\n \* get_rectangles\n \* empty\n \* equal\n \* point_in\n \* rect_in\n \* offset\n \* shrink\n \* union_with_rect\n \* intersect\n \* union\n \* subtract\n \* xor\n \* spans_intersect_foreach\n \* count\n\* no_expose\n \* type\n \* window\n \* send_event\n\* visibility\n \* type\n \* window\n \* send_event\n \* state\n\* motion\n \* type\n \* window\n \* send_event\n \* time\n \* x\n \* y\n \* state\n \* is_hint\n \* device\n \* x_root\n \* y_root\n\* button\n \* type\n \* window\n \* send_event\n \* time\n \* x\n \* y\n \* state\n \* button\n \* device\n \* x_
root\n \* y_root\n\* scroll\n \* type\n \* window\n \* send_event\n \* time\n \* x\n \* y\n \* state\n \* direction\n \* device\n \* x_root\n \* y_root\n\* key\n \* type\n \* window\n \* send_event\n \* time\n \* state\n \* keyval\n \* length\n \* string\n \* hardware_keycode\n \* group\n \* is_modifier\n\* crossing\n \* type\n \* window\n \* send_event\n \* subwindow\n \* time\n \* x\n \* y\n \* x_root\n \* y_root\n \* mode\n \* detail\n \* focus\n \* state\n\* focus_change\n \* type\n \* window\n \* send_event\n \* in\n\* configure\n \* type\n \* window\n \* send_event\n \* x\n \* y\n \* width\n \* height\n\* property\n \* type\n \* window\n \* send_event\n \* atom\n \* name\n \* time\n \* state\n\* selection\n \* type\n \* window\n \* send_event\n \* selection\n \* name\n \* target\n \* name\n \* property\n \* name\n \* time\n \* re
questor\n\* owner_change\n \* type\n \* window\n \* send_event\n \* owner\n \* reason\n \* selection\n \* name\n \* time\n \* selection_time\n\* proximity\n \* type\n \* window\n \* send_event\n \* time\n \* device\n\* client\n \* type\n \* window\n \* send_event\n \* message_type\n \* name\n \* data_format\n\* dnd\n \* type\n \* window\n \* send_event\n \* context\n \* time\n \* x_root\n \* y_root\n\* window_state\n \* type\n \* window\n \* send_event\n \* changed_mask\n \* new_window_state\n\* setting\n \* type\n \* window\n \* send_event\n \* action\n \* name\n\* grab_broken\n \* type\n \* window\n \* send_event\n \* keyboard\n \* implicit\n \* grab_window\n\* put\n\* copy\n\* free\n\* get_time\n\* get_state\n\* get_coords\n\* get_root_coords\n\* get_axis\n\* set_screen\n\* get_screen\n\* send_client_message\n\* send_clientmessage_toall\n\* get_symbol
// STDERR:
-const Gdk = imports.gi.Gdk;
+Gdk = imports.gi.Gdk;
function enum_structlike(indent, e)
{
diff --git a/tests/javascript/type-conversion.js b/tests/javascript/type-conversion.js
index 3b2640c..863f421 100755
--- a/tests/javascript/type-conversion.js
+++ b/tests/javascript/type-conversion.js
@@ -4,7 +4,7 @@
// STDOUT:Can not convert Javascript value to boolean\nCan not convert Javascript value to int
// STDERR:
-const Gtk = imports.gi.Gtk;
+Gtk = imports.gi.Gtk;
Gtk.init(null, null);
actor = new Gtk.Window();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]