jQuery Jasmine Flashcards

1
Q

tags that have checked attribute

A

toBeChecked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

tags with disabled attribute

A

toBeDisabled

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

child DOM elements or text

A

toBeEmpty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

focused inputs

A

toBeFocused

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

selected options in select boxes

A

toBeSelected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

values on fields

A

toHaveValue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

elements that handle events

A

toHandle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

handles with a given fn

A

toHandleWith(eventName, eventHandler)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

if event has been triggered on selector

A

toHaveBeenTriggeredOn(selector)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

event triggered

A

toHaveBeenTriggered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

event triggered with parameters

A

toHaveBeenTriggeredOnAndWith(selector, extraParameters)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

event has been prevented

A

toHaveBeenPreventedOn(selector)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

event prevented

A

toHaveBeenPrevented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

DOM element with class

A

toHaveClass(className)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

DOM styling

A

toHaveCss(css in object)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

DOM data attribute

A

toHaveData(key, value)

17
Q

DOM html

A

toHaveHtml(string)

18
Q

DOM id

A

toHaveId(id)

19
Q

DOM selection length

A

toHaveLength(value)

20
Q

DOM property

A

toHaveProp(propertyName, propertyValue)

21
Q

DOM text node

A

toHaveText(string)

22
Q

DOM hidden

A

toBeHidden()

23
Q

DOM visible

A

toBeVisible()

24
Q

DOM attached

A

toBeInDOM()

25
DOM existent
toExist()
26
jQuery matches
toBeMatchedBy(jQuerySelector)
27
DOM parent relation
toContainElement(jQuerySelector)
28
DOM parent html relation
toContainHtml(string)
29
DOM text
toContainText(string)
30
jQuery selection match
toEqual(jQuerySelector)
31
DOM attribute
toHaveAttribute(attributeName, attributeValue)