MCPcopy Create free account
hub / github.com/angular/components / check

Method check

src/material/radio/testing/radio-harness.ts:268–272  ·  view source on GitHub ↗

* Puts the radio-button in a checked state by clicking it if it is currently unchecked, * or doing nothing if it is already checked.

()

Source from the content-addressed store, hash-verified

266 * or doing nothing if it is already checked.
267 */
268 async check(): Promise<void> {
269 if (!(await this.isChecked())) {
270 return (await this._clickLabel()).click();
271 }
272 }
273}

Callers 3

checkRadioButtonMethod · 0.45

Calls 2

isCheckedMethod · 0.95
clickMethod · 0.65

Tested by

no test coverage detected