jQuery Jasmine Flashcards
1
Q
tags that have checked attribute
A
toBeChecked
2
Q
tags with disabled attribute
A
toBeDisabled
3
Q
child DOM elements or text
A
toBeEmpty
4
Q
focused inputs
A
toBeFocused
5
Q
selected options in select boxes
A
toBeSelected
6
Q
values on fields
A
toHaveValue
7
Q
elements that handle events
A
toHandle
8
Q
handles with a given fn
A
toHandleWith(eventName, eventHandler)
9
Q
if event has been triggered on selector
A
toHaveBeenTriggeredOn(selector)
10
Q
event triggered
A
toHaveBeenTriggered
11
Q
event triggered with parameters
A
toHaveBeenTriggeredOnAndWith(selector, extraParameters)
12
Q
event has been prevented
A
toHaveBeenPreventedOn(selector)
13
Q
event prevented
A
toHaveBeenPrevented
14
Q
DOM element with class
A
toHaveClass(className)
15
Q
DOM styling
A
toHaveCss(css in object)