class
class MockAnimationDriver implements AnimationDriver { static log: AnimationPlayer[] validateStyleProperty(prop: string): boolean matchesElement(element: any, selector: string): boolean containsElement(elm1: any, elm2: any): boolean query(element: any, selector: string, multi: boolean): any[] computeStyle(element: any, prop: string, defaultValue?: string): string animate(element: any, keyframes: { [key: string]: string | number; }[], duration: number, delay: number, easing: string, previousPlayers: any[] = []): MockAnimationPlayer }
Property | Description |
---|---|
static log: AnimationPlayer[] |
validateStyleProperty() | |||
---|---|---|---|
|
prop | string |
boolean
matchesElement() | ||||||
---|---|---|---|---|---|---|
|
element | any | |
selector | string |
boolean
containsElement() | ||||||
---|---|---|---|---|---|---|
|
elm1 | any | |
elm2 | any |
boolean
query() | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
element | any | |
selector | string | |
multi | boolean |
any[]
computeStyle() | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
element | any | |
prop | string | |
defaultValue | string | Optional. Default is |
string
animate() | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
element | any | |
keyframes | { [key: string]: string | number; }[] | |
duration | number | |
delay | number | |
easing | string | |
previousPlayers | any[] | Optional. Default is |
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/animations/browser/testing/MockAnimationDriver