Bug 1333014 - Remove unused element.isInteractable API; r?maja_zf draft
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 07 Feb 2017 17:05:06 +0000
changeset 486091 e13b45ab9f0dc80cfa85bbcd02538d89da021b8d
parent 486090 a5a478359543b47c4f647c178dd9c940aabae9f5
child 486092 ffc93aa89e4a8f6d72c713d779e824fd576a7968
push id45904
push userbmo:ato@mozilla.com
push dateFri, 17 Feb 2017 15:35:32 +0000
reviewersmaja_zf
bugs1333014
milestone54.0a1
Bug 1333014 - Remove unused element.isInteractable API; r?maja_zf MozReview-Commit-ID: 5iBcHUeNmSN
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -918,21 +918,16 @@ element.isVisible = function (el, x = un
     element.scrollIntoView(el);
     if (!element.inViewport(el)) {
       return false;
     }
   }
   return true;
 };
 
-element.isInteractable = function (el) {
-  return element.isPointerInteractable(el) ||
-      element.isKeyboardInteractable(el);
-};
-
 /**
  * A pointer-interactable element is defined to be the first
  * non-transparent element, defined by the paint order found at the centre
  * point of its rectangle that is inside the viewport, excluding the size
  * of any rendered scrollbars.
  *
  * @param {DOMElement} el
  *     Element determine if is pointer-interactable.