[gjs] tests: Add regression test for (transfer full) returning callbacks
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: Add regression test for (transfer full) returning callbacks
- Date: Thu, 18 Jun 2015 14:41:07 +0000 (UTC)
commit 4663c59264c36251b9be107594699db91df314ac
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Jun 2 19:26:40 2015 +0200
tests: Add regression test for (transfer full) returning callbacks
https://bugzilla.gnome.org/show_bug.cgi?id=750286
installed-tests/js/testEverythingBasic.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/installed-tests/js/testEverythingBasic.js b/installed-tests/js/testEverythingBasic.js
index 7061253..a9c3b1a 100644
--- a/installed-tests/js/testEverythingBasic.js
+++ b/installed-tests/js/testEverythingBasic.js
@@ -233,6 +233,15 @@ function testArrayCallback() {
JSUnit.assertRaises(function () { Everything.test_array_callback(null) });
}
+function testCallbackTransferFull() {
+ let callback = function() {
+ let obj = Everything.TestObj.new_from_file("/enoent");
+ return obj;
+ };
+
+ Everything.test_callback_return_full(callback);
+}
+
function testCallbackDestroyNotify() {
let testObj = {
called: 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]