[gjs] test: Various fixes for passing too many args
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] test: Various fixes for passing too many args
- Date: Sat, 12 Apr 2014 18:25:15 +0000 (UTC)
commit d7649bd15ec14dc23486da18a6bcef81bc9ae39a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Apr 12 10:31:11 2014 -0700
test: Various fixes for passing too many args
installed-tests/js/testEverythingBasic.js | 4 ++--
installed-tests/js/testGIMarshalling.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/installed-tests/js/testEverythingBasic.js b/installed-tests/js/testEverythingBasic.js
index 948c99c..7061253 100644
--- a/installed-tests/js/testEverythingBasic.js
+++ b/installed-tests/js/testEverythingBasic.js
@@ -251,10 +251,10 @@ function testCallbackDestroyNotify() {
}
function testCallbackAsync() {
- let test = function(userData) {
+ let test = function() {
return 44;
};
- Everything.test_callback_async(test, 44);
+ Everything.test_callback_async(test);
let i = Everything.test_callback_thaw_async();
JSUnit.assertEquals('testCallbackAsyncFinish', 44, i);
}
diff --git a/installed-tests/js/testGIMarshalling.js b/installed-tests/js/testGIMarshalling.js
index a2e8e35..d322ee2 100644
--- a/installed-tests/js/testGIMarshalling.js
+++ b/installed-tests/js/testGIMarshalling.js
@@ -100,7 +100,7 @@ function testCArray() {
GIMarshallingTests.array_struct_take_in(array);
GIMarshallingTests.array_struct_take_in(array);
- GIMarshallingTests.array_uint8_in ("abcd", 4);
+ GIMarshallingTests.array_uint8_in ("abcd");
GIMarshallingTests.array_enum_in([GIMarshallingTests.Enum.VALUE1,
GIMarshallingTests.Enum.VALUE2,
GIMarshallingTests.Enum.VALUE3]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]