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
Q

DOM existent

A

toExist()

26
Q

jQuery matches

A

toBeMatchedBy(jQuerySelector)

27
Q

DOM parent relation

A

toContainElement(jQuerySelector)

28
Q

DOM parent html relation

A

toContainHtml(string)

29
Q

DOM text

A

toContainText(string)

30
Q

jQuery selection match

A

toEqual(jQuerySelector)

31
Q

DOM attribute

A

toHaveAttribute(attributeName, attributeValue)