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

Function skipIOS

src/cdk/overlay/scroll/block-scroll-strategy.spec.ts:254–260  ·  view source on GitHub ↗

* Skips the specified test, if it is being executed on iOS. This is necessary, because * programmatic scrolling inside the Karma iframe doesn't work on iOS, which renders these * tests unusable. For example, something as basic as the following won't work: * ``` * window.scroll(0, 100);

(spec: Function)

Source from the content-addressed store, hash-verified

252 * @param spec Test to be executed or skipped.
253 */
254 function skipIOS(spec: Function) {
255 return () => {
256 if (!platform.IOS) {
257 spec();
258 }
259 };
260 }
261});
262
263/** Simple component that we can attach to the overlay. */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected