Skip to content

Commit 50f808a

Browse files
author
Hirotaka Tagawa / wafuwafu13
authored
[js] remove unnecessary condition (#10254)
Selenium have already stopped supporting Firefox 24 ESR. https://firefox-source-docs.mozilla.org/testing/geckodriver/Support.html Co-authored-by: Diego Molina <diemol@users.noreply.github.com> [skip ci]
1 parent 1d989dc commit 50f808a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

‎javascript/selenium-atoms/test/event_firing_test.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@
3131
!goog.userAgent.product.CHROME && !goog.userAgent.product.FIREFOX;
3232

3333
function expectedEventCoordinate(elementTopLeftCorner, offset) {
34-
// TODO: Delete next 'if' statement when Selenium stops supporting Firefox 24 ESR.
35-
if (goog.userAgent.product.FIREFOX &&
36-
bot.userAgent.isProductVersion(24) &&
37-
!bot.userAgent.isProductVersion(25)) {
38-
// Firefox 24 ESR events have coordinates of the offset
39-
// (relative to top-left corner of the element; not of the viewport).
40-
return offset;
41-
}
42-
4334
if (SUBPIXEL_PRECISION_SUPPORTED) {
4435
return elementTopLeftCorner + offset;
4536
} else {

0 commit comments

Comments
 (0)