[gjs] testGDBus: Add a log exception
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] testGDBus: Add a log exception
- Date: Wed, 20 Nov 2013 18:43:01 +0000 (UTC)
commit 6effe5a7fc3420ff861921792eb721d3b50d7627
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Nov 20 12:32:01 2013 -0500
testGDBus: Add a log exception
We now log explicitly thrown errors...
installed-tests/js/testGDBus.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/installed-tests/js/testGDBus.js b/installed-tests/js/testGDBus.js
index 0135d52..af2039b 100644
--- a/installed-tests/js/testGDBus.js
+++ b/installed-tests/js/testGDBus.js
@@ -266,6 +266,9 @@ function testFrobateStuff() {
/* excp must be exactly the exception thrown by the remote method
(more or less) */
function testThrowException() {
+ GLib.test_expect_message('Gjs', GLib.LogLevelFlags.LEVEL_WARNING,
+ 'JS ERROR: Exception in method call: alwaysThrowException: *');
+
let theResult, theExcp;
proxy.alwaysThrowExceptionRemote({}, function(result, excp) {
theResult = result;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]