[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser-bundle-testsuite/master] Bug 40009: adapt dom-objects-enumeration test for 83
commit b72c9c38ef4ac04a8aaca63469e2e90ddd97f77e
Author: Alex Catarineu <acat@xxxxxxxxxxxxxx>
Date: Thu Oct 22 21:20:10 2020 +0200
Bug 40009: adapt dom-objects-enumeration test for 83
---
marionette/tor_browser_tests/lib/testsuite.py | 4 ++++
marionette/tor_browser_tests/test_dom-objects-enumeration.py | 2 ++
2 files changed, 6 insertions(+)
diff --git a/marionette/tor_browser_tests/lib/testsuite.py b/marionette/tor_browser_tests/lib/testsuite.py
index 88b1953..fd17887 100644
--- a/marionette/tor_browser_tests/lib/testsuite.py
+++ b/marionette/tor_browser_tests/lib/testsuite.py
@@ -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);")
diff --git a/marionette/tor_browser_tests/test_dom-objects-enumeration.py b/marionette/tor_browser_tests/test_dom-objects-enumeration.py
index cdc2a1e..90458a6 100644
--- a/marionette/tor_browser_tests/test_dom-objects-enumeration.py
+++ b/marionette/tor_browser_tests/test_dom-objects-enumeration.py
@@ -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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits