/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/aria/private/testing/test-helpers.ts
15 строк
479 B
Cheng-Hsuan Tsai
refactor(multiple): implement generic child discovery with SortedCollection (#33151)
30 апр 2026, 00:36
Не верифицирован
30 апр 2026, 00:36
dc6a9a3
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Yields execution to the microtask queue, allowing MutationObserver callbacks to fire. * Useful for testing async behaviors without relying on Zone.js. */ export function waitForMicrotasks(): Promise<void> { return new Promise(resolve => setTimeout(resolve, 0)); }