[gnome-characters] dogtail: Adjust to recent behavior changes
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] dogtail: Adjust to recent behavior changes
- Date: Fri, 13 Feb 2015 09:04:45 +0000 (UTC)
commit 541b392e7d2e9f52a69d6f86d3c04f7205225308
Author: Daiki Ueno <dueno src gnome org>
Date: Fri Feb 13 17:09:52 2015 +0900
dogtail: Adjust to recent behavior changes
src/window.js | 2 +-
tests/Makefile.am | 2 +-
tests/smoke_test.py | 8 +++++++-
3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index c7d9552..4e5100c 100644
--- a/src/window.js
+++ b/src/window.js
@@ -212,7 +212,7 @@ const MainView = new Lang.Class({
let category = CategoryList.Category[index];
characterList = this._createCharacterList();
characterList.get_accessible().accessible_name =
- _('%s Character List').format(category.label);
+ _('%s Character List').format(category.title);
this._characterListWidgets[category.name] = characterList;
this.add_titled(this._createScrolledWindow(characterList),
category.name,
diff --git a/tests/Makefile.am b/tests/Makefile.am
index dfc028d..a82914e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -3,7 +3,7 @@ include $(top_srcdir)/glib-tap.mk
dogtail_tests = \
smoke_test.py
-TESTS_ENVIRONMENT += LC_ALL=C
+TESTS_ENVIRONMENT += LC_ALL=C GSETTINGS_BACKEND=memory
if ENABLE_DOGTAIL
dist_test_scripts = $(dogtail_tests)
diff --git a/tests/smoke_test.py b/tests/smoke_test.py
index 12a1fdf..155bebd 100755
--- a/tests/smoke_test.py
+++ b/tests/smoke_test.py
@@ -80,7 +80,13 @@ try:
# recently used characters
recently_used_page = Page(app, 'Recently Used')
recently_used_page.button.click()
- assert len(recently_used_page.character_list.children) > 0
+ x, y = recently_used_page.character_list.position
+ click(x + 10, y + 10)
+ assert len(app.children) == 2
+ character_dialog = app.children[-1]
+ assert character_dialog.name == 'Exclamation Mark'
+ see_also_button = character_dialog.child('See Also')
+ assert see_also_button.showing
finally:
print "tearing down"
fini()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]