5 lines
318 KiB
JSON
Raw Permalink Normal View History

{
"id": "api/animations/browser/testing/MockAnimationDriver",
"title": "MockAnimationDriver",
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/animations\", \"name\": \"@angular/animations\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/animations/browser/testing\", \"name\": \"@angular/animations/browser/testing\" } },\n { \"@type\": \"ListItem\", \"position\": 4, \"item\": { \"@id\": \"https://angular.io/api/animations/browser/testing/MockAnimationDriver\", \"name\": \"MockAnimationDriver\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/animations\">@angular/animations</a> > <a href=\"api/animations/browser/testing\">@angular/animations/browser/testing</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/animations/browser/testing/src/mock_animation_driver.ts?message=docs(animations)%3A%20describe%20your%20change...#L10-L46\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/animations/browser/testing/src/mock_animation_driver.ts#L10-L46\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"mockanimationdriver\">MockAnimationDriver<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/animations/browser/testing/MockAnimationDriver#mockanimationdriver\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label class\">class</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n \n \n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/animations/browser/testing/MockAnimationDriver\" class=\"code-anchor\">MockAnimationDriver</a> implements <a class=\"code-anchor\" href=\"api/animations/browser/AnimationDriver\">AnimationDriver</a> {\n <a class=\"code-anchor\" href=\"api/animations/browser/testing/MockAnimationDriver#log\">static <span class=\"member-name\">log</span>: AnimationPlayer[]</a>\n <a class=\"code-anchor\" href=\"api/animations/browser/testing/MockAnimationDriver#validateStyleProperty\"><span class=\"member-name\">validateStyleProperty</span>(prop: string): boolean</a>\n <a class=\"code-anchor\" href=\"api/animations/browser/testing/MockAnimationDriver#matchesElement\"><span class=\"member-name\">matchesElement</span>(element: any, selector: string): boolean</a>\n <a class=\"code-anchor\" href=\"api/animations/browser/testing/MockAnimationDriver#containsElement\"><span class=\"member-name\">containsElement</span>(elm1: any, elm2: any): boolean</a>\n <a class=\"code-anchor\" href=\"api/animations/browser/testing/MockAnimationDriver#query\"><span class=\"member-name\">query</span>(element: any, selector: string, multi: boolean): any[]</a>\n <a class=\"code-anchor\" href=\"api/animations/browser/testing/MockAnimationDriver#computeStyle\"><span class=\"member-name\">computeStyle</span>(element: any, prop: string, defaultValue?: string): string</a>\n <a class=\"code-anchor\" href=\"api/animations/browser/testing/MockAnimationDriver#animate\"><span class=\"member-name\">animate</span>(element: any, keyframes: { [key: string]: string | number; }[], duration: number, delay: number, easing: string, previousPlayers: an
}