File tree Expand file tree Collapse file tree 9 files changed +11
-11
lines changed
src/material-experimental Expand file tree Collapse file tree 9 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ function runTests() {
95
95
it ( 'should focus and blur a button' , async ( ) => {
96
96
const button = await loader . getHarness ( buttonHarness . with ( { text : 'Basic button' } ) ) ;
97
97
expect ( getActiveElementId ( ) ) . not . toBe ( 'basic' ) ;
98
- await button . foucs ( ) ;
98
+ await button . focus ( ) ;
99
99
expect ( getActiveElementId ( ) ) . toBe ( 'basic' ) ;
100
100
await button . blur ( ) ;
101
101
expect ( getActiveElementId ( ) ) . not . toBe ( 'basic' ) ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export class MatButtonHarness extends ComponentHarness {
56
56
}
57
57
58
58
/** Focuses the button and returns a void promise that indicates when the action is complete. */
59
- async foucs ( ) : Promise < void > {
59
+ async focus ( ) : Promise < void > {
60
60
return ( await this . host ( ) ) . focus ( ) ;
61
61
}
62
62
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export class MatButtonHarness extends ComponentHarness {
56
56
}
57
57
58
58
/** Focuses the button and returns a void promise that indicates when the action is complete. */
59
- async foucs ( ) : Promise < void > {
59
+ async focus ( ) : Promise < void > {
60
60
return ( await this . host ( ) ) . focus ( ) ;
61
61
}
62
62
Original file line number Diff line number Diff line change @@ -128,13 +128,13 @@ function runTests() {
128
128
it ( 'should focus checkbox' , async ( ) => {
129
129
const checkbox = await loader . getHarness ( checkboxHarness . with ( { label : 'First' } ) ) ;
130
130
expect ( getActiveElementTagName ( ) ) . not . toBe ( 'input' ) ;
131
- await checkbox . foucs ( ) ;
131
+ await checkbox . focus ( ) ;
132
132
expect ( getActiveElementTagName ( ) ) . toBe ( 'input' ) ;
133
133
} ) ;
134
134
135
135
it ( 'should blur checkbox' , async ( ) => {
136
136
const checkbox = await loader . getHarness ( checkboxHarness . with ( { label : 'First' } ) ) ;
137
- await checkbox . foucs ( ) ;
137
+ await checkbox . focus ( ) ;
138
138
expect ( getActiveElementTagName ( ) ) . toBe ( 'input' ) ;
139
139
await checkbox . blur ( ) ;
140
140
expect ( getActiveElementTagName ( ) ) . not . toBe ( 'input' ) ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export class MatCheckboxHarness extends ComponentHarness {
89
89
}
90
90
91
91
/** Focuses the checkbox and returns a void promise that indicates when the action is complete. */
92
- async foucs ( ) : Promise < void > {
92
+ async focus ( ) : Promise < void > {
93
93
return ( await this . _input ( ) ) . focus ( ) ;
94
94
}
95
95
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export class MatCheckboxHarness extends ComponentHarness {
89
89
}
90
90
91
91
/** Focuses the checkbox and returns a void promise that indicates when the action is complete. */
92
- async foucs ( ) : Promise < void > {
92
+ async focus ( ) : Promise < void > {
93
93
return ( await this . _input ( ) ) . focus ( ) ;
94
94
}
95
95
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class MatSlideToggleHarness extends ComponentHarness {
79
79
}
80
80
81
81
/** Focuses the slide-toggle and returns a void promise that indicates action completion. */
82
- async foucs ( ) : Promise < void > {
82
+ async focus ( ) : Promise < void > {
83
83
return ( await this . _input ( ) ) . focus ( ) ;
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -120,13 +120,13 @@ function runTests() {
120
120
it ( 'should focus slide-toggle' , async ( ) => {
121
121
const slideToggle = await loader . getHarness ( slideToggleHarness . with ( { label : 'First' } ) ) ;
122
122
expect ( getActiveElementTagName ( ) ) . not . toBe ( 'input' ) ;
123
- await slideToggle . foucs ( ) ;
123
+ await slideToggle . focus ( ) ;
124
124
expect ( getActiveElementTagName ( ) ) . toBe ( 'input' ) ;
125
125
} ) ;
126
126
127
127
it ( 'should blur slide-toggle' , async ( ) => {
128
128
const slideToggle = await loader . getHarness ( slideToggleHarness . with ( { label : 'First' } ) ) ;
129
- await slideToggle . foucs ( ) ;
129
+ await slideToggle . focus ( ) ;
130
130
expect ( getActiveElementTagName ( ) ) . toBe ( 'input' ) ;
131
131
await slideToggle . blur ( ) ;
132
132
expect ( getActiveElementTagName ( ) ) . not . toBe ( 'input' ) ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class MatSlideToggleHarness extends ComponentHarness {
79
79
}
80
80
81
81
/** Focuses the slide-toggle and returns a void promise that indicates action completion. */
82
- async foucs ( ) : Promise < void > {
82
+ async focus ( ) : Promise < void > {
83
83
return ( await this . _input ( ) ) . focus ( ) ;
84
84
}
85
85
You can’t perform that action at this time.
0 commit comments