File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
material-experimental/mdc-button/testing
tools/public_api_guard/cdk/testing Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export class ProtractorElement implements TestElement {
80
80
return this . element . clear ( ) ;
81
81
}
82
82
83
- async click ( ...args : [ 'center' ] | [ number , number ] ) : Promise < void > {
83
+ async click ( ...args : [ ] | [ 'center' ] | [ number , number ] ) : Promise < void > {
84
84
// Omitting the offset argument to mouseMove results in clicking the center.
85
85
// This is the default behavior we want, so we use an empty array of offsetArgs if no args are
86
86
// passed to this method.
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export class UnitTestElement implements TestElement {
77
77
await this . _stabilize ( ) ;
78
78
}
79
79
80
- async click ( ...args : [ 'center' ] | [ number , number ] ) : Promise < void > {
80
+ async click ( ...args : [ ] | [ 'center' ] | [ number , number ] ) : Promise < void > {
81
81
let clientX : number | undefined = undefined ;
82
82
let clientY : number | undefined = undefined ;
83
83
if ( args . length ) {
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ export class MatButtonHarness extends ComponentHarness {
47
47
click ( location : 'center' ) : Promise < void > ;
48
48
/** Clicks the button. */
49
49
click ( ) : Promise < void > ;
50
- async click ( ...args : [ 'center' ] | [ number , number ] ) : Promise < void > {
51
- return ( await this . host ( ) ) . click ( ...( args as [ any ] ) ) ;
50
+ async click ( ...args : [ ] | [ 'center' ] | [ number , number ] ) : Promise < void > {
51
+ return ( await this . host ( ) ) . click ( ...( args as [ ] ) ) ;
52
52
}
53
53
54
54
/** Gets a boolean promise indicating if the button is disabled. */
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ export class MatButtonHarness extends ComponentHarness {
47
47
click ( location : 'center' ) : Promise < void > ;
48
48
/** Clicks the button. */
49
49
click ( ) : Promise < void > ;
50
- async click ( ...args : [ 'center' ] | [ number , number ] ) : Promise < void > {
51
- return ( await this . host ( ) ) . click ( ...( args as [ any ] ) ) ;
50
+ async click ( ...args : [ ] | [ 'center' ] | [ number , number ] ) : Promise < void > {
51
+ return ( await this . host ( ) ) . click ( ...( args as [ ] ) ) ;
52
52
}
53
53
54
54
/** Whether the button is disabled. */
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export declare class ProtractorElement implements TestElement {
3
3
constructor ( element : ElementFinder ) ;
4
4
blur ( ) : Promise < void > ;
5
5
clear ( ) : Promise < void > ;
6
- click ( ...args : [ 'center' ] | [ number , number ] ) : Promise < void > ;
6
+ click ( ...args : [ ] | [ 'center' ] | [ number , number ] ) : Promise < void > ;
7
7
focus ( ) : Promise < void > ;
8
8
getAttribute ( name : string ) : Promise < string | null > ;
9
9
getCssValue ( property : string ) : Promise < string > ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export declare class UnitTestElement implements TestElement {
21
21
constructor ( element : Element , _stabilize : ( ) => Promise < void > ) ;
22
22
blur ( ) : Promise < void > ;
23
23
clear ( ) : Promise < void > ;
24
- click ( ...args : [ 'center' ] | [ number , number ] ) : Promise < void > ;
24
+ click ( ...args : [ ] | [ 'center' ] | [ number , number ] ) : Promise < void > ;
25
25
focus ( ) : Promise < void > ;
26
26
getAttribute ( name : string ) : Promise < string | null > ;
27
27
getCssValue ( property : string ) : Promise < string > ;
You can’t perform that action at this time.
0 commit comments