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-drawer-content in tests. */
|
---|
10 | export class MatDrawerContentHarness extends ContentContainerComponentHarness {
|
---|
11 | /**
|
---|
12 | * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerContentHarness` that
|
---|
13 | * meets certain criteria.
|
---|
14 | * @param options Options for filtering which drawer content instances are considered a match.
|
---|
15 | * @return a `HarnessPredicate` configured with the given options.
|
---|
16 | */
|
---|
17 | static with(options = {}) {
|
---|
18 | return new HarnessPredicate(MatDrawerContentHarness, options);
|
---|
19 | }
|
---|
20 | }
|
---|
21 | /** The selector for the host element of a `MatDrawerContent` instance. */
|
---|
22 | MatDrawerContentHarness.hostSelector = '.mat-drawer-content';
|
---|
23 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhd2VyLWNvbnRlbnQtaGFybmVzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9zaWRlbmF2L3Rlc3RpbmcvZHJhd2VyLWNvbnRlbnQtaGFybmVzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsZ0NBQWdDLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUd4RiwyRUFBMkU7QUFDM0UsTUFBTSxPQUFPLHVCQUF3QixT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