Bug 1333014 - Remove unused element.isInteractable API; r=maja_zf a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 07 Feb 2017 17:05:06 +0000
changeset 395354 c852580194208796bd82f20ff8301db4fe71dd36
parent 395353 41092b5df8a6307a3c0d2eb20dc6aa4328889bae
child 395355 dca88c00f35a558eabd2441234473db2883b5ec6
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf, test-only
bugs1333014
milestone54.0a2
Bug 1333014 - Remove unused element.isInteractable API; r=maja_zf a=test-only 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.