openseadragon/test
Andrew Armbruster c7df7be7f1 Catch rejected Promise on failed fullscreen request
Add a `catch()` rejection of request for fullscreen (standard Fullscreen API implementation), as well as fullscreen exit. For now there is no actual handling, but we send a message to the internal error channel.

Motivation: The fullscreen request was causing certain tests to fail when run with newer versions of QUnit (starting in 2.5.0), which now fails tests that have unhandled Promise rejections (as we did here).

The exit case is not currently covered by tests, but works the same way (also returns a promise).

See: https://fullscreen.spec.whatwg.org/#ref-for-dom-element-requestfullscreen%E2%91%A0
2023-05-28 14:15:55 +02:00
..
data Handle XML embedded in tilesource JSON 2023-03-30 16:38:35 -05:00
demo Resolved suggestions 2023-05-24 08:45:15 +02:00
helpers Remove support for IE < 11 (#1863) 2021-03-08 13:33:05 -08:00
lib Merge upstream. 2015-06-08 10:38:16 -04:00
modules Catch rejected Promise on failed fullscreen request 2023-05-28 14:15:55 +02:00
coverage.html Update to most recent QUnit 2023-05-27 13:16:28 +02:00
test.html Update to most recent QUnit 2023-05-27 13:16:28 +02:00