[pitivi] dogtail: Remove testing of missing font chooser element
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] dogtail: Remove testing of missing font chooser element
- Date: Tue, 18 Mar 2014 23:00:25 +0000 (UTC)
commit 8e9a62931adbff9912e9a318b9576455be118ecf
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Mar 5 03:52:48 2014 +0100
dogtail: Remove testing of missing font chooser element
tests/dogtail_scripts/test_dialogs_prefs.py | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/tests/dogtail_scripts/test_dialogs_prefs.py b/tests/dogtail_scripts/test_dialogs_prefs.py
index db78373..743ac30 100644
--- a/tests/dogtail_scripts/test_dialogs_prefs.py
+++ b/tests/dogtail_scripts/test_dialogs_prefs.py
@@ -13,19 +13,6 @@ class DialogsPreferencesTest(HelpFunc):
dialog = self.pitivi.child(name="Preferences", roleName="dialog", recursive=False)
dialog.child("Reset to Factory Settings", roleName="push button").click()
- # Set a different font
- dialog.child(name="Sans", roleName="push button").click()
- fontchooser = self.pitivi.child(name="Pick a Font", roleName="dialog", recursive=False)
- # Perf hack: do a search to reduce the amount of table cells displayed
- # (otherwise dogtail will take ages to search for it) and to prevent
- # scrolling (so we can just click the first item in the search results).
- # Since the search entry is focused by default, just start typing:
- dogtail.rawinput.typeText("cantarell bold oblique")
- # Ideally I'd search the child table cells, but this is way too slow,
- # so let's just pick the first item in the search results:
- fontchooser.child(roleName="table cell").click()
- fontchooser.child(name="Select", roleName="push button").click()
-
# Set the thumbnail gap setting (or whatever the first spinbutton is)
foo = dialog.child(roleName="spin button")
# The following is quite silly. You *need* to focus the widget
@@ -45,11 +32,6 @@ class DialogsPreferencesTest(HelpFunc):
dialog = self.pitivi.child(name="Preferences", roleName="dialog", recursive=False)
# Check if the previous values were correctly saved
- # In the case of the font, just search if such an item exists:
- try:
- dialog.child(name="Cantarell Bold Oblique", roleName="push button")
- except SearchError:
- self.fail("Font was not saved")
self.assertEqual(dialog.child(roleName="spin button").text, "12")
# Check the "revert to last user values" feature
@@ -64,5 +46,4 @@ class DialogsPreferencesTest(HelpFunc):
# Check resetting to factory settings
dialog.child("Reset to Factory Settings", roleName="push button").click()
- dialog.child(name="Sans", roleName="push button")
self.assertEqual(dialog.child(roleName="spin button").text, "5", "Resetting to factory defaults
failed")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]