layoutasserts.js
No description.

File Location

/goog/testing/style/layoutasserts.js


Public Protected Private

Global Functions

assertContained(abopt_c)
Asserts that the first element's bounds contain the bounds of the second element.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertHeight(abopt_c)
Asserts that the element must have the specified height.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertHeightWithinTolerance(abcopt_d)
Asserts that the element must have the specified height within the specified tolerance.
Arguments:
a : Element | string
The element or optionally the comment string.
b : number | Element
The height or the element if comment string is present.
c : number
The tolerance or the height if comment string is present.
opt_d : number=
The tolerance if comment string is present.
code »
assertIntersect(abopt_c)
Asserts that the two specified elements intersect.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertIsAbove(abopt_c)
Asserts that the first element is higher than the second element.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertIsLeftOf(abopt_c)
Asserts that the first element is to the left of the second element.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertIsStrictlyAbove(abopt_c)
Asserts that the first element is strictly higher than the second element.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertIsStrictlyLeftOf(abopt_c)
Asserts that the first element is strictly left of the second element.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertIsVisible(aopt_b)
Asserts that an element has: 1 - a CSS rendering the makes the element visible. 2 - a non-zero width and height.
Arguments:
a : Element | string
The element or optionally the comment string.
opt_b : Element=
The element when a comment string is present.
code »
assertNoIntersect(abopt_c)
Asserts that the two specified elements do not intersect.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertNotVisible(aopt_b)
The counter assertion of assertIsVisible().
Arguments:
a : Element | string
The element or optionally the comment string.
opt_b : Element=
The element when a comment string is present.
code »
assertWidth(abopt_c)
Asserts that the element must have the specified width.
Arguments:
a : Element | string
The first element or optionally the comment string.
b : Element
The second element or the first element if comment string is present.
opt_c : Element=
The second element if comment string is present.
code »
assertWidthWithinTolerance(abcopt_d)
Asserts that the element must have the specified width within the specified tolerance.
Arguments:
a : Element | string
The element or optionally the comment string.
b : number | Element
The height or the element if comment string is present.
c : number
The tolerance or the height if comment string is present.
opt_d : number=
The tolerance if comment string is present.
code »
goog.testing.style.layoutasserts.isWithinThreshold_(val1val2threshold) boolean
Returns true if the difference between val1 and val2 is less than or equal to the threashold.
Arguments:
val1 : number
The first value.
val2 : number
The second value.
threshold : number
The threshold value.
Returns: boolean  Whether or not the the values are within the threshold.
code »

Directory style

File Reference