The goog.testing.style Namespace

.hasVisibleDimensions(element)

Determines whether the element has visible dimensions, i.e. x > 0 && y > 0.

element {Element}
The element to check.
returns {boolean}
Whether the element has visible dimensions.

.intersects(element, otherElement)

Determines whether the bounding rectangles of the given elements intersect.

element {Element}
The first element.
otherElement {Element}
The second element.
returns {boolean}
Whether the bounding rectangles of the given elements intersect.

.isOnScreen(el)

Test whether the given element is on screen.

el {!Element}
The element to test.
returns {boolean}
Whether the element is on the screen.

.isVisible(element)

Determines whether the CSS style of the element renders it visible.

element {!Element}
The element to check.
returns {boolean}
Whether the CSS style of the element renders it visible.

The goog.testing.style.layoutasserts Namespace

… more