[gnome-software] Enable accessibility for tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Enable accessibility for tests
- Date: Sat, 21 Dec 2013 19:08:33 +0000 (UTC)
commit 57cc0ec9c09fa108aeec715bdb5b1ebedb6796fa
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 21 14:08:18 2013 -0500
Enable accessibility for tests
tests/actions.py | 8 ++++++--
tests/basic.py | 5 +++++
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/tests/actions.py b/tests/actions.py
index 002ad80..2822fbf 100755
--- a/tests/actions.py
+++ b/tests/actions.py
@@ -6,13 +6,17 @@
# Check that the expected actions are exported on the session bus.
# Activate each action and verify the result.
-import os
+from gi.repository import Gio
+
+settings = Gio.Settings.new("org.gnome.desktop.interface")
+settings.set_boolean ("toolkit-accessibility", True)
+
import dbus
from dogtail.tree import *
from dogtail.utils import *
from dogtail.procedural import *
-#run('gnome-software')
+run('gnome-software')
app = root.application('org.gnome.Software');
diff --git a/tests/basic.py b/tests/basic.py
index cbc3482..18194aa 100755
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -8,6 +8,11 @@
# search page. Hit Escape and verify that we go back to the overview
# page.
+from gi.repository import Gio
+
+settings = Gio.Settings.new("org.gnome.desktop.interface")
+settings.set_boolean ("toolkit-accessibility", True)
+
import os
from dogtail.tree import *
from dogtail.utils import *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]