Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-bundle-testsuite
Commits
b72c9c38
Commit
b72c9c38
authored
Oct 22, 2020
by
Alex Catarineu
Browse files
Bug 40009: adapt dom-objects-enumeration test for 83
parent
3f122e5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
marionette/tor_browser_tests/lib/testsuite.py
View file @
b72c9c38
...
...
@@ -28,6 +28,10 @@ class TestSuite(object):
class
TorBrowserTest
(
MarionetteTestCase
):
def
is_early_beta_or_earlier
(
self
):
with
self
.
marionette
.
using_context
(
"chrome"
):
return
self
.
marionette
.
execute_script
(
"return AppConstants.EARLY_BETA_OR_EARLIER;"
)
def
get_version
(
self
):
with
self
.
marionette
.
using_context
(
"chrome"
):
return
self
.
marionette
.
execute_script
(
"return parseFloat(AppConstants.MOZ_APP_VERSION);"
)
marionette/tor_browser_tests/test_dom-objects-enumeration.py
View file @
b72c9c38
...
...
@@ -758,6 +758,8 @@ class Test(testsuite.TorBrowserTest):
expectedObjects
.
remove
(
"content"
)
if
self
.
get_version
()
>=
82
:
expectedObjects
=
expectedObjects
.
union
({
"MediaMetadata"
,
"MediaSession"
,
"Sanitizer"
})
if
self
.
get_version
()
>=
83
and
self
.
is_early_beta_or_earlier
():
expectedObjects
=
expectedObjects
.
union
({
"onbeforeinput"
})
with
self
.
marionette
.
using_context
(
'content'
):
self
.
marionette
.
navigate
(
self
.
test_page_file_url
)
...
...
Write
Preview
Supports
Markdown
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