Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
a858f435
Commit
a858f435
authored
Jul 06, 2018
by
intrigeri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test suite: make variables naming more consistent.
parent
37e14889
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
features/step_definitions/browser.rb
features/step_definitions/browser.rb
+3
-3
No files found.
features/step_definitions/browser.rb
View file @
a858f435
...
@@ -222,15 +222,15 @@ end
...
@@ -222,15 +222,15 @@ end
Then
/^I can watch a WebM video in Tor Browser$/
do
Then
/^I can watch a WebM video in Tor Browser$/
do
test_url
=
'https://tails.boum.org/lib/test_suite/test.webm'
test_url
=
'https://tails.boum.org/lib/test_suite/test.webm'
info
=
xul_application_info
(
'Tor Browser'
)
info
=
xul_application_info
(
'Tor Browser'
)
open_
webm
_url
=
Proc
.
new
do
open_
test
_url
=
Proc
.
new
do
step
"I open the address
\"
#{
test_url
}
\"
in the Tor Browser"
step
"I open the address
\"
#{
test_url
}
\"
in the Tor Browser"
end
end
recovery_on_failure
=
Proc
.
new
do
recovery_on_failure
=
Proc
.
new
do
@screen
.
type
(
Sikuli
::
Key
.
ESC
)
@screen
.
type
(
Sikuli
::
Key
.
ESC
)
@screen
.
waitVanish
(
info
[
:browser_reload_button_image
],
3
)
@screen
.
waitVanish
(
info
[
:browser_reload_button_image
],
3
)
open_
webm
_url
.
call
open_
test
_url
.
call
end
end
open_
webm
_url
.
call
open_
test
_url
.
call
retry_tor
(
recovery_on_failure
)
do
retry_tor
(
recovery_on_failure
)
do
@screen
.
wait
(
"TorBrowserSampleRemoteWebMVideoFrame.png"
,
30
)
@screen
.
wait
(
"TorBrowserSampleRemoteWebMVideoFrame.png"
,
30
)
end
end
...
...
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