[seed] Fixing array-gtype.js and gvalue-argument.js tests
- From: Danilo Cesar Lemes de Paula <danilocesar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Fixing array-gtype.js and gvalue-argument.js tests
- Date: Thu, 6 Oct 2016 17:47:49 +0000 (UTC)
commit 18341ebb0766518b0aefd6ae8c60f868e787b001
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date: Thu Oct 6 14:04:28 2016 -0300
Fixing array-gtype.js and gvalue-argument.js tests
When the argument prediction took place, there's no need to
send the Array size as argument when passing arrays to GLib methods.
tests/javascript/Makefile.am | 2 --
tests/javascript/array-gtype.js | 4 ++--
tests/javascript/gvalue-argument.js | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/tests/javascript/Makefile.am b/tests/javascript/Makefile.am
index b357582..d85904c 100644
--- a/tests/javascript/Makefile.am
+++ b/tests/javascript/Makefile.am
@@ -78,8 +78,6 @@ TESTS = \
XFAIL_TESTS = \
gerror.js \
- array-gtype.js \
- gvalue-argument.js \
gdk-event.js \
object-info.js \
property-glib-exception.js \
diff --git a/tests/javascript/array-gtype.js b/tests/javascript/array-gtype.js
index 969f711..dca570c 100755
--- a/tests/javascript/array-gtype.js
+++ b/tests/javascript/array-gtype.js
@@ -8,10 +8,10 @@ Gtk.init(Seed.argv);
try
{
list = new Gtk.ListStore();
- list.set_column_types(2, [GObject.TYPE_STRING, GObject.TYPE_INT]);
+ list.set_column_types([GObject.TYPE_STRING, GObject.TYPE_INT]);
}
catch(e)
{
- print(e)
+ print(e.message)
imports.testsuite.unreachable()
}
diff --git a/tests/javascript/gvalue-argument.js b/tests/javascript/gvalue-argument.js
index 80358d1..c303818 100755
--- a/tests/javascript/gvalue-argument.js
+++ b/tests/javascript/gvalue-argument.js
@@ -6,7 +6,7 @@ Gtk.init(Seed.argv);
var s = new Gtk.ListStore();
-s.set_column_types(3, [GObject.TYPE_STRING, GObject.TYPE_INT, Gtk.Label.type]);
+s.set_column_types([GObject.TYPE_STRING, GObject.TYPE_INT, Gtk.Label.type]);
var ret = {};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]