Skip to content

Commit a724e5c

Browse files
committed
rename file, udpate golden
1 parent 90785d3 commit a724e5c

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

src/cdk/testing/protractor/protractor-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
TestKey
1414
} from '@angular/cdk/testing';
1515
import {browser, ElementFinder, Key} from 'protractor';
16-
import {getTextWithExcludedElements} from '@angular/cdk/testing/dom-helpers';
16+
import {getTextWithExcludedElements} from '@angular/cdk/testing/text-filtering';
1717

1818
/** Maps the `TestKey` constants to Protractor's `Key` constants. */
1919
const keyMap = {

src/cdk/testing/test-element.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export interface TestElement {
106106
* @param options Options that affect what text is included
107107
* exclude: A selector for elements whose text should be excluded from the result.
108108
*/
109-
text(options?: {exclude?: string}): Promise<string>;
109+
text(options?: TextOptions): Promise<string>;
110110

111111
/** Gets the value for the given attribute from the element. */
112112
getAttribute(name: string): Promise<string | null>;
@@ -132,3 +132,8 @@ export interface TestElement {
132132
/** Checks whether the element is focused. */
133133
isFocused(): Promise<boolean>;
134134
}
135+
136+
interface TextOptions {
137+
/** Optional selector for elements to exclude. */
138+
exclude?: string
139+
}

src/cdk/testing/testbed/unit-test-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
triggerFocus,
2323
typeInElement,
2424
} from './fake-events';
25-
import {getTextWithExcludedElements} from '@angular/cdk/testing/dom-helpers';
25+
import {getTextWithExcludedElements} from '@angular/cdk/testing/text-filtering';
2626

2727
/** Maps `TestKey` constants to the `keyCode` and `key` values used by native browser events. */
2828
const keyMap = {
File renamed without changes.

tools/public_api_guard/cdk/testing.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ export interface ElementDimensions {
4040
width: number;
4141
}
4242

43-
export declare function getTextWithExcludedElements(element: Element, excludeSelector: string): string;
44-
4543
export declare abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFactory {
4644
protected rawRootElement: E;
4745
rootElement: TestElement;

0 commit comments

Comments
 (0)