[gnome-characters] dogtail: Adjust to the latest behavior



commit 1f984208a63e0943f41defe4f731beeb24073687
Author: Daiki Ueno <dueno src gnome org>
Date:   Mon Feb 16 22:53:38 2015 +0900

    dogtail: Adjust to the latest behavior

 src/categoryList.js |    2 ++
 tests/smoke_test.py |    9 +++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/categoryList.js b/src/categoryList.js
index 0a3cbd4..9057ba9 100644
--- a/src/categoryList.js
+++ b/src/categoryList.js
@@ -90,6 +90,8 @@ const CategoryListRowWidget = new Lang.Class({
         this.parent(params);
         this.category = category;
         this.get_style_context().add_class('category-list-row');
+        this.get_accessible().accessible_name =
+            _('%s Category List Row').format(category.title);
 
         let hbox = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL });
         this.add(hbox);
diff --git a/tests/smoke_test.py b/tests/smoke_test.py
index 155bebd..f8973aa 100755
--- a/tests/smoke_test.py
+++ b/tests/smoke_test.py
@@ -29,7 +29,7 @@ PAGE_LABELS = [
 
 class Page(object):
     def __init__(self, app, label):
-        self.button = app.child(label)
+        self.button = app.child('%s Category List Row' % label)
         self.character_list = app.child('%s Character List' % label)
 
 init()
@@ -51,7 +51,12 @@ try:
     for label, page in pages.items():
         assert page.button.showing
         if label in PAGE_LABELS:
-            assert not page.character_list.showing
+            # for the first time, recent characters are empty and
+            # 'Punctuation' tab should be selected.
+            if label == 'Punctuation':
+                assert page.character_list.showing
+            else:
+                assert not page.character_list.showing
 
     # selection mode
     for label1 in PAGE_LABELS:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]