core/testing/src/mocks/script.mock.ts
Properties |
Methods |
|
constructor()
|
Optional async |
Type: boolean
|
Optional defer |
Type: boolean
|
Optional onerror |
Type: function
|
Optional onload |
Type: function
|
Optional src |
Type: string
|
Optional type |
Type: string
|
Public children |
Type: any[]
|
Default value: []
|
Inherited from
MockElement
|
Public Optional className |
Type: string
|
Inherited from
MockElement
|
Public Optional dir |
Type: "ltr" | "rtl"
|
Inherited from
MockElement
|
Public Optional parentElement |
Type: MockElement
|
Inherited from
MockElement
|
Public Optional tagName |
Type: string
|
Inherited from
MockElement
|
Public appendChild | ||||||
appendChild(node: any)
|
||||||
Inherited from
MockElement
|
||||||
Parameters:
Returns:
void
|
||||||
Public extractAttributesFromSelector | ||||||
extractAttributesFromSelector(selector: string)
|
||||||
Inherited from
MockElement
|
||||||
Extracts an array of {name, value} objects mapping the attributes from the specified selector string. Attributes with no value will be mapped with wildcard value (i.e. '**').
Parameters:
Returns:
any
|
||||||
Public querySelectorAll | ||||||
querySelectorAll(selector: string)
|
||||||
Inherited from
MockElement
|
||||||
Parameters:
Returns:
any[]
|
||||||
Public remove |
remove()
|
Inherited from
MockElement
|
Returns:
void
|
Public removeChild | ||||||
removeChild(node: any)
|
||||||
Inherited from
MockElement
|
||||||
Parameters:
Returns:
void
|
||||||