GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit b72c9c38 authored by Alex Catarineu's avatar Alex Catarineu

Bug 40009: adapt dom-objects-enumeration test for 83

parent 3f122e5f
......@@ -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);")
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment