src/jasmine-matchers.ts
Methods |
toBeChecked |
toBeChecked()
|
Defined in src/jasmine-matchers.ts:33
|
Checks that the receiver is a TestInput and is checked
Returns :
boolean
|
toBeVisible |
toBeVisible()
|
Defined in src/jasmine-matchers.ts:53
|
Checks that the receiver is a TestHtmlElement which is visible.
Returns :
boolean
|
toContainText | ||||||
toContainText(textContent: string)
|
||||||
Defined in src/jasmine-matchers.ts:28
|
||||||
Checks that the receiver is a TestElement wrapping a DOM element and contains the given textContent
Parameters :
Returns :
boolean
|
toHaveClass | ||||||
toHaveClass(className: string)
|
||||||
Defined in src/jasmine-matchers.ts:7
|
||||||
Checks that the receiver is a TestElement wrapping a DOM element and has the given CSS class
Parameters :
Returns :
boolean
|
toHaveSelectedIndex | ||||||
toHaveSelectedIndex(index: number)
|
||||||
Defined in src/jasmine-matchers.ts:38
|
||||||
Checks that the receiver is a TestSelect wrapping a DOM element and has the given selected index
Parameters :
Returns :
boolean
|
toHaveSelectedLabel | ||||||
toHaveSelectedLabel(label: string)
|
||||||
Defined in src/jasmine-matchers.ts:48
|
||||||
Checks that the receiver is a TestSelect wrapping a DOM element with the selected option's label equal to the given label
Parameters :
Returns :
boolean
|
toHaveSelectedValue | ||||||
toHaveSelectedValue(value: string)
|
||||||
Defined in src/jasmine-matchers.ts:43
|
||||||
Checks that the receiver is a TestSelect wrapping a DOM element with the selected option's value equal to the given value
Parameters :
Returns :
boolean
|
toHaveText | ||||||
toHaveText(textContent: string)
|
||||||
Defined in src/jasmine-matchers.ts:17
|
||||||
Checks that the receiver is a TestElement wrapping a DOM element and has the exact given textContent
Parameters :
Returns :
boolean
|
toHaveTrimmedText | ||||||
toHaveTrimmedText(textContent: string)
|
||||||
Defined in src/jasmine-matchers.ts:23
|
||||||
Checks that the receiver is a TestElement wrapping a DOM element and has the given textContent after both have been trimmed.
Parameters :
Returns :
boolean
|
toHaveValue | ||||||
toHaveValue(value: string)
|
||||||
Defined in src/jasmine-matchers.ts:12
|
||||||
Checks that the receiver is a TestInput or a TestTextArea and has the given value
Parameters :
Returns :
boolean
|
declare namespace jasmine {
interface Matchers<T> {
/**
* Checks that the receiver is a TestElement wrapping a DOM element and has the given CSS class
*/
toHaveClass(className: string): boolean;
/**
* Checks that the receiver is a TestInput or a TestTextArea and has the given value
*/
toHaveValue(value: string): boolean;
/**
* Checks that the receiver is a TestElement wrapping a DOM element and has the exact given textContent
*/
toHaveText(textContent: string): boolean;
/**
* Checks that the receiver is a TestElement wrapping a DOM element and has the given textContent
* after both have been trimmed.
*/
toHaveTrimmedText(textContent: string): boolean;
/**
* Checks that the receiver is a TestElement wrapping a DOM element and contains the given textContent
*/
toContainText(textContent: string): boolean;
/**
* Checks that the receiver is a TestInput and is checked
*/
toBeChecked(): boolean;
/**
* Checks that the receiver is a TestSelect wrapping a DOM element and has the given selected index
*/
toHaveSelectedIndex(index: number): boolean;
/**
* Checks that the receiver is a TestSelect wrapping a DOM element with the selected option's value equal to the given value
*/
toHaveSelectedValue(value: string): boolean;
/**
* Checks that the receiver is a TestSelect wrapping a DOM element with the selected option's label equal to the given label
*/
toHaveSelectedLabel(label: string): boolean;
/**
* Checks that the receiver is a TestHtmlElement which is visible.
*/
toBeVisible(): boolean;
}
}