Name Description Size
iframe.html 1048
image.png 0
resizeTestHelper.js ResizeTestHelper is a framework to test ResizeObserver notifications. Use it to make assertions about ResizeObserverEntries. This framework is needed because ResizeObservations are delivered asynchronously inside the event loop. Features: - can queue multiple notification steps in a test - handles timeouts - returns Promise that is fulfilled when test completes. Use to chain tests (since parallel async ResizeObserver tests would conflict if reusing same DOM elements). Usage: create ResizeTestHelper for every test. Make assertions inside notify, timeout callbacks. Start tests with helper.start() Chain tests with Promises. Counts animation frames, see startCountingRaf 5698