jquery/test/data/event
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
..
focusElem.html Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-12 23:23:10 +01:00
focusinCrossFrame.html Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-12 23:23:10 +01:00
interactiveReady.html Tests: Add support for running unit tests via grunt with karma 2017-12-18 12:27:38 -05:00
onbeforeunload.html Tests: Make the beforeunload event tests work regardless of extensions 2024-04-25 00:25:27 +02:00
promiseReady.html Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-12 23:23:10 +01:00
syncReady.html Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-12 23:23:10 +01:00
triggerunload.html Tests: Refactor testIframe() to make it DRYer and more consistent 2016-04-11 13:32:51 -04:00