Bug 1254521 - Add return type docs for element.isVisible; r=automatedtester
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 08 Mar 2016 13:52:38 +0000
changeset 287319 0b53b870729065bf0f809747a09fd36e29eb7bc9
parent 287318 f2cdd79de5669658a512596aee365ff94dead662
child 287320 16448c5d4d17b606c30bef742b9a3ad03b767b45
push id18077
push userkwierso@gmail.com
push dateWed, 09 Mar 2016 00:09:21 +0000
treeherderfx-team@a67b36e32207 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1254521
milestone47.0a1
Bug 1254521 - Add return type docs for element.isVisible; r=automatedtester MozReview-Commit-ID: 9tjnHPmYSdq
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -807,16 +807,19 @@ element.inViewport = function(el, x = un
  * @param {Window} window
  *     Window object.
  * @param {number=} x
  *     Horizontal offset relative to target.  Defaults to the centre of
  *     the target's bounding box.
  * @param {number=} y
  *     Vertical offset relative to target.  Defaults to the centre of
  *     the target's bounding box.
+ *
+ * @return {boolean}
+ *     True if visible, false otherwise.
  */
 element.isVisible = function(el, x = undefined, y = undefined) {
   let win = el.ownerDocument.defaultView;
 
   // Bug 1094246: webdriver's isShown doesn't work with content xul
   if (!element.isXULElement(el) && !atom.isElementDisplayed(el, win)) {
     return false;
   }