Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
3.2 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
---|
9 | /** Harness for interacting with a standard mat-sidenav-content in tests. */
|
---|
10 | export class MatSidenavContentHarness extends ContentContainerComponentHarness {
|
---|
11 | /**
|
---|
12 | * Gets a `HarnessPredicate` that can be used to search for a `MatSidenavContentHarness` that
|
---|
13 | * meets certain criteria.
|
---|
14 | * @param options Options for filtering which sidenav content instances are considered a match.
|
---|
15 | * @return a `HarnessPredicate` configured with the given options.
|
---|
16 | */
|
---|
17 | static with(options = {}) {
|
---|
18 | return new HarnessPredicate(MatSidenavContentHarness, options);
|
---|
19 | }
|
---|
20 | }
|
---|
21 | /** The selector for the host element of a `MatSidenavContent` instance. */
|
---|
22 | MatSidenavContentHarness.hostSelector = '.mat-sidenav-content';
|
---|
23 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lkZW5hdi1jb250ZW50LWhhcm5lc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvc2lkZW5hdi90ZXN0aW5nL3NpZGVuYXYtY29udGVudC1oYXJuZXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBQyxnQ0FBZ0MsRUFBRSxnQkFBZ0IsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBR3hGLDRFQUE0RTtBQUM1RSxNQUFNLE9BQU8sd0JBQXlCLFNBQV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