[gjs] Indent enum test properly
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Indent enum test properly
- Date: Thu, 15 Dec 2011 22:17:38 +0000 (UTC)
commit 87a5dd91a2be4d9d7feac111337119cb034eb20e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Dec 15 15:14:56 2011 -0500
Indent enum test properly
test/js/testEverythingBasic.js | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/test/js/testEverythingBasic.js b/test/js/testEverythingBasic.js
index 9e49cbf..c9e3b06 100644
--- a/test/js/testEverythingBasic.js
+++ b/test/js/testEverythingBasic.js
@@ -363,17 +363,20 @@ function testNestedGHashOut() {
/* Enums */
function testEnumParam() {
- let e;
+ let e;
- e = Everything.test_enum_param(Everything.TestEnum.VALUE1);
- assertEquals('Enum parameter', 'value1', e);
- e = Everything.test_enum_param(Everything.TestEnum.VALUE3);
- assertEquals('Enum parameter', 'value3', e);
+ e = Everything.test_enum_param(Everything.TestEnum.VALUE1);
+ assertEquals('Enum parameter', 'value1', e);
+ e = Everything.test_enum_param(Everything.TestEnum.VALUE3);
+ assertEquals('Enum parameter', 'value3', e);
- e = Everything.test_unsigned_enum_param(Everything.TestEnumUnsigned.VALUE1);
- assertEquals('Enum parameter', 'value1', e);
- e = Everything.test_unsigned_enum_param(Everything.TestEnumUnsigned.VALUE2);
- assertEquals('Enum parameter', 'value2', e);
+ e = Everything.test_unsigned_enum_param(Everything.TestEnumUnsigned.VALUE1);
+ assertEquals('Enum parameter', 'value1', e);
+ e = Everything.test_unsigned_enum_param(Everything.TestEnumUnsigned.VALUE2);
+ assertEquals('Enum parameter', 'value2', e);
+
+ assertNotUndefined("Enum $gtype", Everything.TestEnumUnsigned.$gtype);
+ assertTrue("Enum $gtype enumerable", "$gtype" in Everything.TestEnumUnsigned);
}
function testSignal() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]