jquery/test/data
Michał Gołębiowski-Owczarek 399a78ee9f
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
2024-04-25 00:24:55 +02:00
..
ajax Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-04 16:27:18 +01:00
core Tests: migrate testing infrastructure to minimal dependencies 2024-02-26 09:42:10 -05:00
css CSS: Fix reliableTrDimensions support test for initially hidden iframes 2023-11-07 00:35:52 +01:00
data Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-04 16:27:18 +01:00
dimensions Tests: Refactor testIframe() to make it DRYer and more consistent 2016-04-11 13:32:51 -04:00
event Tests: Make the beforeunload event tests work regardless of extensions 2024-04-25 00:24:55 +02:00
manipulation Core: Fire iframe script in its context, add doc param in globalEval 2020-02-10 19:17:22 +01:00
offset Build:Tests: Fix custom build tests, verify on Travis 2020-01-07 23:59:08 +01:00
selector Tests: Stop using jQuery.find in tests 2019-10-21 19:02:22 +02:00
support Build: migrate most grunt tasks off of grunt 2023-09-18 12:39:00 -04:00
1x1.jpg Fixes #11426: getting the responseText of an xhr should be tried/caught because of IE's inability to give access to binary data. Unit test added. 2012-03-07 15:39:39 +01:00
1x1.svg Traversing: $.fn.contents() support for object 2018-05-14 13:41:42 -04:00
badcall.js Revert "Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore." 2012-12-05 14:54:14 +01:00
badjson.js Revert "Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore." 2012-12-05 14:54:14 +01:00
cleanScript.html Manipulation: Don't remove HTML comments from scripts 2021-07-19 19:04:23 +02:00
csp-ajax-script-downloaded.js Ajax: Avoid CSP errors in the script transport for async requests 2020-08-25 21:28:30 +02:00
csp-ajax-script.html Ajax: Avoid CSP errors in the script transport for async requests 2020-08-25 21:28:30 +02:00
csp-ajax-script.js Ajax: Avoid CSP errors in the script transport for async requests 2020-08-25 21:28:30 +02:00
csp-nonce-external.html Core: Preserve CSP nonce on scripts with src attribute in DOM manipulation 2019-03-25 18:14:24 +01:00
csp-nonce-external.js Core: Preserve CSP nonce on scripts with src attribute in DOM manipulation 2019-03-25 18:14:24 +01:00
csp-nonce-globaleval.html Core: Support passing nonce through jQuery.globalEval 2019-01-21 18:42:39 +01:00
csp-nonce-globaleval.js Core: Support passing nonce through jQuery.globalEval 2019-01-21 18:42:39 +01:00
csp-nonce.html Core: Preserve CSP nonce on scripts in DOM manipulation 2019-01-14 19:29:54 +01:00
csp-nonce.js Core: Preserve CSP nonce on scripts in DOM manipulation 2019-01-14 19:29:54 +01:00
csp.include.html Core:Manipulation: Add basic TrustedHTML support 2021-09-30 16:00:24 +02:00
dashboard.xml Revert "Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore." 2012-12-05 14:54:14 +01:00
frame.html Traversing: $.fn.contents() support for object 2018-05-14 13:41:42 -04:00
iframe.html Fix indentation in /speed and /test dirs, closes gh-780. 2012-05-18 13:28:50 -04:00
iframeTest.js Tests: Improve offset test setup and labels 2017-04-24 21:44:51 -04:00
inner_module.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
inner_nomodule.js Core: Remove IE-specific support tests, rely on document.documentMode 2019-05-13 21:39:56 +02:00
jquery-3.7.1.js Tests: migrate testing infrastructure to minimal dependencies 2024-02-26 09:42:10 -05:00
json_obj.js Revert "Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore." 2012-12-05 14:54:14 +01:00
mock.php Build: Add exports to package.json, export slim & esm builds 2023-07-10 19:14:08 +02:00
module.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
name.html Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
nomodule.js Core: Remove IE-specific support tests, rely on document.documentMode 2019-05-13 21:39:56 +02:00
qunit-fixture.html Selector: Make empty attribute selectors work in IE again 2019-11-18 22:10:55 +01:00
readywait.html Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-04 16:27:18 +01:00
test2.html Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
test3.html Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapse 2016-09-15 10:40:27 -04:00
test.include.html Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
testinit.js Tests: reuse browser workers in BrowserStack tests (#5428) 2024-03-05 14:44:01 -05:00
testrunner.js Build: migrate most grunt tasks off of grunt 2023-09-18 12:39:00 -04:00
testsuite.css Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-04 16:27:18 +01:00
text.txt Tests: Add support for running unit tests via grunt with karma 2017-12-18 12:27:38 -05:00
trusted-html.html Core:Manipulation: Add basic TrustedHTML support 2021-09-30 16:00:24 +02:00
trusted-types-attributes.html Attributes: Don't stringify attributes in the setter 2021-11-01 18:10:23 +01:00
trusted-types-attributes.js Attributes: Don't stringify attributes in the setter 2021-11-01 18:10:23 +01:00
with_fries.xml Revert "Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore." 2012-12-05 14:54:14 +01:00