[gjs] tests: check setting gtk css name
- From: Matthew Watson <watson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: check setting gtk css name
- Date: Tue, 19 Apr 2016 02:20:14 +0000 (UTC)
commit ce34505562600d0051725ba0188c200bb116c100
Author: Matt Watson <mattdangerw gmail com>
Date: Mon Mar 28 17:39:25 2016 -0700
tests: check setting gtk css name
Acked by Cosimo Cecchi <cosimoc gnome org>
installed-tests/js/testGtk.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/installed-tests/js/testGtk.js b/installed-tests/js/testGtk.js
index 69046c6..e8c42fa 100755
--- a/installed-tests/js/testGtk.js
+++ b/installed-tests/js/testGtk.js
@@ -45,6 +45,7 @@ const MyComplexGtkSubclass = new Lang.Class({
Template: ByteArray.fromString(template),
Children: ['label-child', 'label-child2'],
InternalChildren: ['internal-label-child'],
+ CssName: 'complex-subclass',
_init: function(params) {
this.parent(params);
@@ -54,6 +55,9 @@ const MyComplexGtkSubclass = new Lang.Class({
JSUnit.assertNotEquals(this.label_child2, null);
JSUnit.assertNotEquals(this._internal_label_child, null);
+
+ JSUnit.assertEquals(Gtk.Widget.get_css_name.call(MyComplexGtkSubclass),
+ 'complex-subclass');
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]