jquery/test/unit
Michał Gołębiowski-Owczarek 5d83fadb6b
Tests: Make the beforeunload event tests work regardless of extensions
Some browser extensions, like React DevTools, send messages to the content area.
Since our beforeunload event test listens for all messages, it used to catch
those as well, failing the test.

Add a `source` field to the payload JSON and check for it before treating the
message as coming from our own test to make sure the test passes even with such
browser extensions installed.

Closes gh-5478

(cherry picked from commit 399a78ee9f)
2024-04-25 00:25:27 +02:00
..
ajax.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
animation.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
attributes.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
basic.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
callbacks.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
core.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
css.js Tests: Workaround a tr width test issue in old iOS 2023-11-13 18:12:23 +01:00
data.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
deferred.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
deprecated.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
dimensions.js Core: Simplify code post browser support reduction 2023-09-20 00:59:32 +02:00
effects.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
event.js Tests: Make the beforeunload event tests work regardless of extensions 2024-04-25 00:25:27 +02:00
exports.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
manipulation.js Manipulation: Generalize a test to support IE 2024-01-13 00:20:51 +01:00
offset.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
queue.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
ready.js Tests: Exclude tests based on compilation flags, not API presence (3.x version) 2022-07-12 17:12:27 +02:00
selector.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
serialize.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
support.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
traversing.js Build: migrate most grunt tasks off of grunt (3.x) 2023-09-20 18:18:42 -04:00
tween.js Tests: migrate testing infrastructure to minimal dependencies 2024-03-05 13:53:39 -05:00
wrap.js Core: Simplify code post browser support reduction 2023-09-20 00:59:32 +02:00