Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Millan Castro
pitivi
Commits
8e9a6293
Commit
8e9a6293
authored
Mar 05, 2014
by
Alexandru Băluț
Committed by
Mathieu Duponchelle
Mar 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dogtail: Remove testing of missing font chooser element
parent
12b7d292
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
tests/dogtail_scripts/test_dialogs_prefs.py
tests/dogtail_scripts/test_dialogs_prefs.py
+0
-19
No files found.
tests/dogtail_scripts/test_dialogs_prefs.py
View file @
8e9a6293
...
...
@@ -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"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment