MCPcopy
hub / github.com/angular/components / add

Method add

src/cdk/testing/component-harness.ts:652–656  ·  view source on GitHub ↗

* Adds a predicate function to be run against candidate harnesses. * @param description A description of this predicate that may be used in error messages. * @param predicate An async predicate function. * @return this (for method chaining).

(description: string, predicate: AsyncPredicate<T>)

Source from the content-addressed store, hash-verified

650 * @return this (for method chaining).
651 */
652 add(description: string, predicate: AsyncPredicate<T>) {
653 this._descriptions.push(description);
654 this._predicates.push(predicate);
655 return this;
656 }
657
658 /**
659 * Adds a predicate function that depends on an option value to be run against candidate

Callers 15

constructorMethod · 0.95
addOptionMethod · 0.95
ngOnInitMethod · 0.45
_listenForResizeEventsFunction · 0.45
ngAfterViewInitFunction · 0.45
setResizedFunction · 0.45
_listenForHoverActivityFunction · 0.45
withHandlesMethod · 0.45
disableHandleMethod · 0.45
addClassMethod · 0.45

Calls 1

pushMethod · 0.65

Tested by 1