Hello all,
I am interested in writing web platform tests that will test a new storage pressure event. I wanted to know if it was possible to use WebDriver to simulate storage pressure, which is the state in which a device has low free disk space. The event is a DOM event which fires when storage systems identify storage pressure, and the event is dispatched to any script that has registered an event listener, but will not wake ServiceWorkers. I'm hoping to write a test where, at the start, there is no (simulated) storage pressure, I add an event listener, simulate storage pressure, and then listen for any events fired.
Any suggestions on how I could achieve this? Are there any examples of this? Any thoughts or tips would be appreciated.
Thanks!