testing.style

Classes


Public Protected Private

Global Functions

goog.testing.style.getAvailableStyle_(elementstyle) string
This is essentially goog.style.getStyle_. goog.style.getStyle_ is private and is not a recommended way for general purpose style extractor. For the purposes of layout testing, we only use this function for retrieving 'visiblity' and 'display' style.
Arguments:
element : !Element
The element to retrieve the style from.
style : string
Style property name.
Returns: string  Style value.
code »
goog.testing.style.hasVisibleDimensions(element) boolean
Determines whether the element has visible dimensions, i.e. x > 0 && y > 0.
Arguments:
element : Element
The element to check.
Returns: boolean  Whether the element has visible dimensions.
code »
goog.testing.style.intersects(elementotherElement) boolean
Determines whether the bounding rectangles of the given elements intersect.
Arguments:
element : Element
The first element.
otherElement : Element
The second element.
Returns: boolean  Whether the bounding rectangles of the given elements intersect.
code »
goog.testing.style.isOnScreen(el) boolean
Test whether the given element is on screen.
Arguments:
el : !Element
The element to test.
Returns: boolean  Whether the element is on the screen.
code »
goog.testing.style.isVisible(element) boolean
Determines whether the CSS style of the element renders it visible.
Arguments:
element : !Element
The element to check.
Returns: boolean  Whether the CSS style of the element renders it visible.
code »

Global Properties

goog.testing.style.layoutasserts :
No description.
Code »
goog.testing.style.layoutassertsTest :
No description.
Code »

Package testing

Package Reference