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 503051 c8a6ad5f2adc70025e38345613cb64a04e05b4c7
parent 503050 843e27e29cd3e6faa68914a72c1ab802864dd162
child 503052 77eef91711110b3f338ad04a92e9bfcfaec729bb
push id50471
push userbmo:ato@mozilla.com
push dateWed, 22 Mar 2017 19:18:41 +0000
reviewersmaja_zf
bugs1333014
milestone55.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.