[seed] Replace .init(null, null) with .init(Seed.argv) in tests



commit 1e1d075988f281af3240c769e414a6b1c9a51b5d
Author: Robert Carr <racarr svn gnome org>
Date:   Mon May 11 20:11:33 2009 -0400

    Replace .init(null, null) with .init(Seed.argv) in tests
---
 tests/javascript/array-gtype.js                |    2 +-
 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/gdk-event.js                  |    2 +-
 tests/javascript/gobject-scope.js              |    2 +-
 tests/javascript/gtype-class-init-exception.js |    2 +-
 tests/javascript/gtype-property-construct.js   |    2 +-
 tests/javascript/gtype-property.js             |    2 +-
 tests/javascript/gtype-signal-args.js          |    2 +-
 tests/javascript/gtype-signal.js               |    2 +-
 tests/javascript/gtype.js                      |    2 +-
 tests/javascript/gvalue-argument.js            |    2 +-
 tests/javascript/introspect.js                 |    2 +-
 tests/javascript/json-constructor.js           |    2 +-
 tests/javascript/list-test.js                  |    2 +-
 tests/javascript/native-closure-exception.js   |    2 +-
 tests/javascript/native-closure.js             |    2 +-
 tests/javascript/out-test.js                   |    2 +-
 tests/javascript/property-benchmark.js         |    2 +-
 tests/javascript/property-glib-exception.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/struct-functions.js           |    2 +-
 tests/javascript/type-conversion.js            |    2 +-
 30 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/tests/javascript/array-gtype.js b/tests/javascript/array-gtype.js
index 8644721..db50b1f 100755
--- a/tests/javascript/array-gtype.js
+++ b/tests/javascript/array-gtype.js
@@ -7,7 +7,7 @@
 Gtk = imports.gi.Gtk;
 GObject = imports.gi.GObject;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 list = new Gtk.ListStore();
 list.set_column_types(2, [GObject.TYPE_STRING, GObject.TYPE_INT]);
diff --git a/tests/javascript/closure-finalization.js b/tests/javascript/closure-finalization.js
index 01d6bb4..435b73e 100755
--- a/tests/javascript/closure-finalization.js
+++ b/tests/javascript/closure-finalization.js
@@ -6,7 +6,7 @@
 
 Gtk = imports.gi.Gtk;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 w = new Gtk.Window();
 
diff --git a/tests/javascript/compare.js b/tests/javascript/compare.js
index f980560..707e13a 100755
--- a/tests/javascript/compare.js
+++ b/tests/javascript/compare.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var a = new Gtk.Button();
 var b = new Gtk.Button();
diff --git a/tests/javascript/constructor-args.js b/tests/javascript/constructor-args.js
index 20c1bd2..f880e18 100755
--- a/tests/javascript/constructor-args.js
+++ b/tests/javascript/constructor-args.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 try
 {
diff --git a/tests/javascript/constructor-prototype.js b/tests/javascript/constructor-prototype.js
index 9f72b67..7f72176 100755
--- a/tests/javascript/constructor-prototype.js
+++ b/tests/javascript/constructor-prototype.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 Gtk.Window.prototype.hello = "Hello World";
 
diff --git a/tests/javascript/enum.js b/tests/javascript/enum.js
index d6ed65c..f597fe5 100755
--- a/tests/javascript/enum.js
+++ b/tests/javascript/enum.js
@@ -5,7 +5,7 @@
 // STDERR:
  
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 b = new Gtk.Button();
 b.relief = Gtk.ReliefStyle.NONE;
diff --git a/tests/javascript/gdk-event.js b/tests/javascript/gdk-event.js
index 414d39f..b550b11 100755
--- a/tests/javascript/gdk-event.js
+++ b/tests/javascript/gdk-event.js
@@ -6,7 +6,7 @@
 
 Gtk = imports.gi.Gtk;
 Gdk = imports.gi.Gdk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 function paint(wdg, evt)
 {
diff --git a/tests/javascript/gobject-scope.js b/tests/javascript/gobject-scope.js
index 9362632..5b71910 100755
--- a/tests/javascript/gobject-scope.js
+++ b/tests/javascript/gobject-scope.js
@@ -6,7 +6,7 @@
 
 Gtk = imports.gi.Gtk;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 for(var i = 0; i < 100; i++)
 {
diff --git a/tests/javascript/gtype-class-init-exception.js b/tests/javascript/gtype-class-init-exception.js
index 93b3277..12f485c 100755
--- a/tests/javascript/gtype-class-init-exception.js
+++ b/tests/javascript/gtype-class-init-exception.js
@@ -5,7 +5,7 @@
 // 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
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 HelloWindowType = {
     parent: Gtk.Window.type,
diff --git a/tests/javascript/gtype-property-construct.js b/tests/javascript/gtype-property-construct.js
index 2c58cb1..712585e 100755
--- a/tests/javascript/gtype-property-construct.js
+++ b/tests/javascript/gtype-property-construct.js
@@ -6,7 +6,7 @@
 
 Gtk = imports.gi.Gtk;
 GObject = imports.gi.GObject;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 HelloWindowType = {
 parent: Gtk.Window.type,
diff --git a/tests/javascript/gtype-property.js b/tests/javascript/gtype-property.js
index a9532bf..6733b43 100755
--- a/tests/javascript/gtype-property.js
+++ b/tests/javascript/gtype-property.js
@@ -6,7 +6,7 @@
 
 Gtk = imports.gi.Gtk;
 GObject = imports.gi.GObject;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 HelloWindowType = {
 parent: Gtk.Window.type,
diff --git a/tests/javascript/gtype-signal-args.js b/tests/javascript/gtype-signal-args.js
index de1f0ce..b822c6d 100755
--- a/tests/javascript/gtype-signal-args.js
+++ b/tests/javascript/gtype-signal-args.js
@@ -6,7 +6,7 @@
 
 Gtk = imports.gi.Gtk;
 GObject = imports.gi.GObject;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 HelloWindow = new GType({
     parent: Gtk.Window.type,
diff --git a/tests/javascript/gtype-signal.js b/tests/javascript/gtype-signal.js
index e1d8e6a..f347888 100755
--- a/tests/javascript/gtype-signal.js
+++ b/tests/javascript/gtype-signal.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 HelloWindowType = {
     parent: Gtk.Window.type,
diff --git a/tests/javascript/gtype.js b/tests/javascript/gtype.js
index d2e2a2b..70d8862 100755
--- a/tests/javascript/gtype.js
+++ b/tests/javascript/gtype.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 HelloWindowType = {
     parent: Gtk.Window.type,
diff --git a/tests/javascript/gvalue-argument.js b/tests/javascript/gvalue-argument.js
index e0d0c29..0d0112b 100755
--- a/tests/javascript/gvalue-argument.js
+++ b/tests/javascript/gvalue-argument.js
@@ -6,7 +6,7 @@
 
 Gtk = imports.gi.Gtk;
 GObject = imports.gi.GObject
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var s = new Gtk.ListStore();
 
diff --git a/tests/javascript/introspect.js b/tests/javascript/introspect.js
index a8b2d2a..814f090 100755
--- a/tests/javascript/introspect.js
+++ b/tests/javascript/introspect.js
@@ -5,6 +5,6 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 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 55e2794..60bd8ac 100755
--- a/tests/javascript/json-constructor.js
+++ b/tests/javascript/json-constructor.js
@@ -7,7 +7,7 @@
 Gtk = imports.gi.Gtk;
 GLib = imports.gi.GLib;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 window = new Gtk.Window({title: "JSON Win!"});
 window.show_all();
 
diff --git a/tests/javascript/list-test.js b/tests/javascript/list-test.js
index 8b9c857..acad734 100755
--- a/tests/javascript/list-test.js
+++ b/tests/javascript/list-test.js
@@ -6,7 +6,7 @@
 
 Gtk = imports.gi.Gtk;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 b1 = new Gtk.Button();
 b2 = new Gtk.Button();
diff --git a/tests/javascript/native-closure-exception.js b/tests/javascript/native-closure-exception.js
index 02dcd03..d8799f5 100755
--- a/tests/javascript/native-closure-exception.js
+++ b/tests/javascript/native-closure-exception.js
@@ -5,7 +5,7 @@
 // STDERR:\n\*\* \(seed:[0-9]+\): WARNING \*\*: Exception in closure marshal\. Line 12 in .*\/native-closure-exception\.js: ReferenceError Can't find variable: a
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 w = new Gtk.Window();
 vbox = new Gtk.VBox();
diff --git a/tests/javascript/native-closure.js b/tests/javascript/native-closure.js
index d5ef30b..1c581d7 100755
--- a/tests/javascript/native-closure.js
+++ b/tests/javascript/native-closure.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 w = new Gtk.Window();
 vbox = new Gtk.VBox();
diff --git a/tests/javascript/out-test.js b/tests/javascript/out-test.js
index 78a4cb7..63dc2ac 100755
--- a/tests/javascript/out-test.js
+++ b/tests/javascript/out-test.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 w = new Gtk.Window({width_request: 5, height_request: 100});
 o1 = { };
diff --git a/tests/javascript/property-benchmark.js b/tests/javascript/property-benchmark.js
index 0f3c533..ba5e8c9 100755
--- a/tests/javascript/property-benchmark.js
+++ b/tests/javascript/property-benchmark.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 window = new Gtk.Window();
 window.title="HI";
diff --git a/tests/javascript/property-glib-exception.js b/tests/javascript/property-glib-exception.js
index c6f01ea..961a9cf 100755
--- a/tests/javascript/property-glib-exception.js
+++ b/tests/javascript/property-glib-exception.js
@@ -5,7 +5,7 @@
 // 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
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 window = new Gtk.Window();
 window.opacity = 3;
diff --git a/tests/javascript/signal-connect.js b/tests/javascript/signal-connect.js
index 9dbaabc..4867bb3 100755
--- a/tests/javascript/signal-connect.js
+++ b/tests/javascript/signal-connect.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 function handle_opacity_change(obj, gobject, user_data)
 {
diff --git a/tests/javascript/signal-exception.js b/tests/javascript/signal-exception.js
index 1af0217..9d4c86b 100755
--- a/tests/javascript/signal-exception.js
+++ b/tests/javascript/signal-exception.js
@@ -5,7 +5,7 @@
 // STDERR:\n\*\* \(seed:[0-9]+\): WARNING \*\*: Exception in closure .*
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 w = new Gtk.Window();
 
diff --git a/tests/javascript/signal-expects.js b/tests/javascript/signal-expects.js
index 67d7f40..129cd2d 100755
--- a/tests/javascript/signal-expects.js
+++ b/tests/javascript/signal-expects.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 function expects_test(widget, user_data)
 {
diff --git a/tests/javascript/signal-userdata.js b/tests/javascript/signal-userdata.js
index f0192ae..300e2af 100755
--- a/tests/javascript/signal-userdata.js
+++ b/tests/javascript/signal-userdata.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 function userdata_test(widget, user_data)
 {
diff --git a/tests/javascript/signal.js b/tests/javascript/signal.js
index abc07a2..f4d7195 100755
--- a/tests/javascript/signal.js
+++ b/tests/javascript/signal.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 function mapped(window)
 {
diff --git a/tests/javascript/struct-functions.js b/tests/javascript/struct-functions.js
index 8bdb837..a373f5b 100755
--- a/tests/javascript/struct-functions.js
+++ b/tests/javascript/struct-functions.js
@@ -6,6 +6,6 @@
 
 Seed.import_namespace("GConf");
 
-GConf.init(null, null);
+GConf.init(Seed.argv);
 
 client = GConf.Client.get_default();
diff --git a/tests/javascript/type-conversion.js b/tests/javascript/type-conversion.js
index 863f421..ffa9ae4 100755
--- a/tests/javascript/type-conversion.js
+++ b/tests/javascript/type-conversion.js
@@ -5,7 +5,7 @@
 // STDERR:
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 actor = new Gtk.Window();
 tests = [



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