[seed] Begin to update tests



commit 603661a0cf9e08bef21a4147c987f12ffb54d4ea
Author: Robert Carr <racarr mireia (none)>
Date:   Sun Apr 12 09:45:47 2009 -0400

    Begin to update tests
---
 tests/javascript/array-gtype.js                |    4 ++--
 tests/javascript/closure-finalization.js       |    3 ++-
 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                     |    5 ++---
 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 +-
 43 files changed, 51 insertions(+), 51 deletions(-)

diff --git a/tests/javascript/array-gtype.js b/tests/javascript/array-gtype.js
index 631da67..9c74648 100755
--- a/tests/javascript/array-gtype.js
+++ b/tests/javascript/array-gtype.js
@@ -4,8 +4,8 @@
 // STDOUT:
 // STDERR:
 
-Seed.import_namespace("Gtk");
-Seed.import_namespace("GObject");
+const Gtk = imports.gi.Gtk;
+const GObject = imports.gi.GObject;
 
 Gtk.init(null, null);
 
diff --git a/tests/javascript/closure-finalization.js b/tests/javascript/closure-finalization.js
index b07e7e1..08903be 100755
--- a/tests/javascript/closure-finalization.js
+++ b/tests/javascript/closure-finalization.js
@@ -4,7 +4,8 @@
 // STDOUT:\[object GtkVBox\]
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const Gtk = imports.gi.Gtk;
+
 Gtk.init(null, null);
 
 w = new Gtk.Window();
diff --git a/tests/javascript/compare.js b/tests/javascript/compare.js
index b129eb1..9c4244d 100755
--- a/tests/javascript/compare.js
+++ b/tests/javascript/compare.js
@@ -4,7 +4,7 @@
 // STDOUT:0.000000\n1.000000
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 fe3d234..0f88024 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:
 
-Seed.import_namespace("Gtk");
+const Gtk = imports.gi.Gtk;
 Gtk.init(null, null);
 
 try
diff --git a/tests/javascript/constructor-prototype.js b/tests/javascript/constructor-prototype.js
index 1145e5a..c0e6d9a 100755
--- a/tests/javascript/constructor-prototype.js
+++ b/tests/javascript/constructor-prototype.js
@@ -4,7 +4,7 @@
 // STDOUT:Hello World
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 1307360..d71dc26 100755
--- a/tests/javascript/enum.js
+++ b/tests/javascript/enum.js
@@ -4,7 +4,7 @@
 // STDOUT:2.000000
 // STDERR:
  
-Seed.import_namespace("Gtk");
+const 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 90ff5e4..fffca21 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:
 
-Seed.import_namespace("Everything");
+const Everything = imports.gi.Everything;
 
 with(Everything)
 {
diff --git a/tests/javascript/function-info.js b/tests/javascript/function-info.js
index 2f1db56..1531081 100755
--- a/tests/javascript/function-info.js
+++ b/tests/javascript/function-info.js
@@ -4,8 +4,8 @@
 // STDOUT:resize
 // STDERR:
 
-Seed.import_namespace("Gtk");
-Seed.import_namespace("GIRepository");
+const Gtk = imports.gi.Gtk;
+const 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 d70e8d7..7e38d41 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:
 
-Seed.import_namespace("Gtk");
-Seed.import_namespace("Gdk");
+const Gtk = imports.gi.Gtk;
+const 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 815e766..4f64f70 100755
--- a/tests/javascript/gerror.js
+++ b/tests/javascript/gerror.js
@@ -4,7 +4,7 @@
 // STDOUT:GIoError Error opening file .* Is a directory
 // STDERR:
 
-Seed.import_namespace("Gio");
+const Gio = imports.gi.Gio;
 
 try
 {
diff --git a/tests/javascript/gobject-scope.js b/tests/javascript/gobject-scope.js
index b1a2540..45f1fb7 100755
--- a/tests/javascript/gobject-scope.js
+++ b/tests/javascript/gobject-scope.js
@@ -4,7 +4,7 @@
 // STDOUT:
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 35b95b8..877a5a8 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
 
-Seed.import_namespace("Gtk");
+const Gtk = imports.gi.Gtk;
 Gtk.init(null, null);
 
 HelloWindowType = {
diff --git a/tests/javascript/gtype-property.js b/tests/javascript/gtype-property.js
index 0d3c228..c6899eb 100755
--- a/tests/javascript/gtype-property.js
+++ b/tests/javascript/gtype-property.js
@@ -4,8 +4,8 @@
 // STDOUT:1\.000000\n0\.000000
 // STDERR:
 
-Seed.import_namespace("Gtk");
-Seed.import_namespace("GObject");
+const Gtk = imports.gi.Gtk;
+const 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 b0e9a2d..edffa37 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:
 
-Seed.import_namespace("Gtk");
+const 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 a77f562..93ae1c8 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:
 
-Seed.import_namespace("Gtk");
+const Gtk = imports.gi.Gtk;
 Gtk.init(null, null);
 
 HelloWindowType = {       
diff --git a/tests/javascript/gtype-signal.js b/tests/javascript/gtype-signal.js
index ff8aceb..d92ab89 100755
--- a/tests/javascript/gtype-signal.js
+++ b/tests/javascript/gtype-signal.js
@@ -4,7 +4,7 @@
 // STDOUT:Hello\nGoodbye
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const Gtk = imports.gi.Gtk;
 Gtk.init(null, null);
 
 HelloWindowType = {       
diff --git a/tests/javascript/gtype-typerror.js b/tests/javascript/gtype-typerror.js
index a5e0e43..6be18e2 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:
 
-Seed.import_namespace("Gtk");
+const Gtk = imports.gi.Gtk;
 
 
 HelloWindowType = {
diff --git a/tests/javascript/gtype.js b/tests/javascript/gtype.js
index 0b20572..ed6d174 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:
 
-Seed.import_namespace("Gtk");
+const Gtk = imports.gi.Gtk;
 Gtk.init(null, null);
 
 HelloWindowType = {
diff --git a/tests/javascript/gvalue-argument.js b/tests/javascript/gvalue-argument.js
index 97080f4..27c4978 100755
--- a/tests/javascript/gvalue-argument.js
+++ b/tests/javascript/gvalue-argument.js
@@ -4,7 +4,7 @@
 // STDOUT:
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 5766089..8d528c3 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:
 
-Seed.import_namespace("Gtk");
+const 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 215f8b7..87dc3a8 100755
--- a/tests/javascript/json-constructor.js
+++ b/tests/javascript/json-constructor.js
@@ -4,8 +4,8 @@
 // STDOUT:JSON Win!
 // STDERR:
 
-Seed.import_namespace("Gtk");
-Seed.import_namespace("GLib");
+const Gtk = imports.gi.Gtk;
+const 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 92b80d7..926ceea 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:
 
-Seed.import_namespace("Gtk");
+const 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 525e855..266cd6a 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
 
-Seed.import_namespace("Gtk");
+const 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 2baf09a..e8b74cd 100755
--- a/tests/javascript/native-closure.js
+++ b/tests/javascript/native-closure.js
@@ -4,7 +4,7 @@
 // STDOUT:\[object GtkLabel\]\n\[object GtkButton\]
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 eab0a99..72e95b0 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:
 
-Seed.import_namespace("Gtk");
-Seed.import_namespace("GIRepository");
+const Gtk = imports.gi.Gtk;
+const 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 42926ba..abb4235 100755
--- a/tests/javascript/out-test.js
+++ b/tests/javascript/out-test.js
@@ -4,7 +4,7 @@
 // STDOUT:5 100
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 2ff2af1..c49e35a 100755
--- a/tests/javascript/property-benchmark.js
+++ b/tests/javascript/property-benchmark.js
@@ -4,7 +4,7 @@
 // STDOUT:
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 ffeaa12..2599f03 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
 
-Seed.import_namespace("Gtk");
+const 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 edb977e..470c905 100755
--- a/tests/javascript/readline.js
+++ b/tests/javascript/readline.js
@@ -4,5 +4,5 @@
 // STDOUT:4.000000
 // STDERR:
 
-Seed.import_namespace("readline");
+const readline = imports.readline;
 Seed.print(eval(readline.readline("")));
diff --git a/tests/javascript/readline_bind.js b/tests/javascript/readline_bind.js
index 66a89d8..103ae96 100755
--- a/tests/javascript/readline_bind.js
+++ b/tests/javascript/readline_bind.js
@@ -4,6 +4,6 @@
 // STDOUT:Got here!\n4.000000
 // STDERR:
 
-Seed.import_namespace("readline");
+const 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 915a266..c7c1fa1 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:
 
-Seed.import_namespace("Gtk");
+const 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 88ccb75..0f866a6 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\.
 
-Seed.import_namespace("Gtk");
+const 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 0f935a6..a0c6024 100755
--- a/tests/javascript/signal-expects.js
+++ b/tests/javascript/signal-expects.js
@@ -4,7 +4,7 @@
 // STDOUT:In signal
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 4c4a563..486b5c2 100755
--- a/tests/javascript/signal-userdata.js
+++ b/tests/javascript/signal-userdata.js
@@ -4,7 +4,7 @@
 // STDOUT:\{"Hello":"World"\}
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const 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 0ba71ee..66a0098 100755
--- a/tests/javascript/signal.js
+++ b/tests/javascript/signal.js
@@ -4,7 +4,7 @@
 // STDOUT:Window mapped.
 // STDERR:
 
-Seed.import_namespace("Gtk");
+const Gtk = imports.gi.Gtk;
 Gtk.init(null, null);
 
 function mapped(window)
diff --git a/tests/javascript/sqlite.js b/tests/javascript/sqlite.js
index 66976cc..e8565bc 100755
--- a/tests/javascript/sqlite.js
+++ b/tests/javascript/sqlite.js
@@ -3,9 +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:
-
-Seed.import_namespace("sqlite");
-Seed.import_namespace("Gio");
+const Gio = imports.gi.Gio;
+const sqlite = imports.sqlite;
 
 try
 {
diff --git a/tests/javascript/struct-constructor.js b/tests/javascript/struct-constructor.js
index bfaff2b..8d17046 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:
 
-Seed.import_namespace("Gdk");
+const 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 d12771f..6b7d449 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:
 
-Seed.import_namespace("Gdk");
+const 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 f8b3d6f..6309fa1 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:
 
-Seed.import_namespace("Gdk");
+const 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 2593893..363bc75 100755
--- a/tests/javascript/struct-offsets.js
+++ b/tests/javascript/struct-offsets.js
@@ -4,7 +4,7 @@
 // STDOUT:17\.000000\n0\.000000
 // STDERR:
 
-Seed.import_namespace("Pango");
+const 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 8906b30..e9712b1 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:
 
-Seed.import_namespace("Gdk");
+const 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 cc3c57f..5563681 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:
 
-Seed.import_namespace("Gdk");
+const Gdk = imports.gi.Gdk;
 
 function enum_structlike(indent, e)
 {
diff --git a/tests/javascript/type-conversion.js b/tests/javascript/type-conversion.js
index 078b13b..3b2640c 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:
 
-Seed.import_namespace("Gtk");
+const 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]