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 @@ -78,7 +78,7 @@ export class UnitTestElement implements TestElement {
78
78
await this . _stabilize ( ) ;
79
79
}
80
80
81
- async click ( ...args : [ 'center' ] | [ number , number ] ) : Promise < void > {
81
+ async click ( ...args : [ ] | [ 'center' ] | [ number , number ] ) : Promise < void > {
82
82
let clientX : number | undefined = undefined ;
83
83
let clientY : number | undefined = undefined ;
84
84
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 @@ -20,7 +20,7 @@ export declare class UnitTestElement implements TestElement {
20
20
constructor ( element : Element , _stabilize : ( ) => Promise < void > ) ;
21
21
blur ( ) : Promise < void > ;
22
22
clear ( ) : Promise < void > ;
23
- click ( ...args : [ 'center' ] | [ number , number ] ) : Promise < void > ;
23
+ click ( ...args : [ ] | [ 'center' ] | [ number , number ] ) : Promise < void > ;
24
24
focus ( ) : Promise < void > ;
25
25
getAttribute ( name : string ) : Promise < string | null > ;
26
26
getCssValue ( property : string ) : Promise < string > ;
You can’t perform that action at this time.
0 commit comments