aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/serialize.js
Commit message (Collapse)AuthorAgeFilesLines
* Build: migrate most grunt tasks off of gruntTimmy Willison2023-09-181-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Updated tasks include: - lint - npmcopy - build, minify, and process for distribution. - new custom build command using yargs - compare size of minified/gzip built files - pretest scripts, including qunit-fixture, babel transpilation, and npmcopy - node smoke tests - promises aplus tests - new watch task using `rollup.watch` directly Also: - upgraded husky and added the new lint command - updated lint config to use new "flat" config format. See https://eslint.org/docs/latest/use/configure/configuration-files-new - Temporarily disabled one lint rule until flat config is supported by eslint-plugin-import. See https://github.com/import-js/eslint-plugin-import/issues/2556 - committed package-lock.json - updated all test scripts to use the new build - added an express test server that uses middleware-mockserver (this can be used to run tests without karma) - build-all-variants is now build:all Close gh-5318
* Tests: Exclude tests based on compilation flags, not API presenceMichał Gołębiowski-Owczarek2022-06-281-1/+1
| | | | | | | | | | Introduces a new test API, `includesModule`. The method returns whether a particular module like "ajax" or "deprecated" is included in the current jQuery build; it handles the slim build as well. The util was created so that we don't treat presence of particular APIs to decide whether to run a test as then if we accidentally remove an API, the tests would still not fail. Fixes gh-5069 Closes gh-5046
* Docs: Replace `#NUMBER` Trac issue references with `trac-NUMBER`Michał Gołębiowski-Owczarek2022-01-041-1/+1
| | | | | | | | | | | | | The GitHub UI treats `#NUMBER` as referring to its own issues which is confusing when in jQuery source it's usually referring to the old deprecated Trac instance at https://bugs.jquery.com. This change replaces all such Trac references with `trac-NUMBER`. A few of the references came with the Sizzle integration and referred to the Sizzle GitHub bug tracker. Those have been replaced with full links instead. A new entry describing issue reference conventions has been added to README. Closes gh-4993
* Build:Tests: Fix custom build tests, verify on Travis Michał Gołębiowski-Owczarek2020-01-071-1/+1
| | | | | | | | | | | This commit fixes unit tests for the following builds: 1. The no-deprecated build: `custom:-deprecated` 2. The current slim build: `custom:-ajax,-effects` 3. The future (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects` It also adds separate Travis jobs for the no-deprecated & slim builds. Closes gh-4577
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-181-1/+1
| | | | | | | | Also, run `grunt npmcopy` to sync the "external" directory with dependencies from package.json. For example, the Sinon library version didn't match. Ref gh-4234 Closes gh-4297
* Serialize: jQuery.param: return empty string when given null/undefinedTimmy Willison2018-06-201-1/+4
| | | | Fixes gh-2633 Close gh-4108
* Build: ESLint detailsOleg Gaidarenko2016-06-111-7/+7
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Ajax: Ensure ajaxSettings.traditional is still honoredDave Methvin2016-04-271-2/+15
| | | | | | | | Fixes gh-3023 Closes gh-3081 Since .param() no longer looks at this setting we need unit tests to ensure it is still honored by $.ajax().
* Serialize: .param - don't use ajaxSettings.traditionalAlexander K2016-04-271-28/+12
| | | | | Ref gh-3023 Closes gh-3030
* Serialize: Treat literal and function-returned null/undefined the sameJoe Trumbull2016-04-051-1/+4
| | | | | | Fixes gh-3005 Closes gh-3007
* Selector: pass jQuery unit tests with selector-nativeTimmy Willison2015-11-111-1/+2
| | | | | | | | | - Ignore certain tests that obviously are not supported - Beefed up the sortOrder, uniqueSort, isXMLDoc, and attr functions Fixes gh-1742 Fixes gh-2048 Close gh-2703
* Ajax: Only form-encode requests with a bodyDave Methvin2015-11-021-15/+15
| | | | | Fixes #2658 Closes #2671
* Serialize: Handle arrays with null valuesDaniel Nill2015-09-071-1/+4
| | | | Closes gh-2436
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-64/+64
| | | | Fixes gh-2056
* Tests: partially use new qunit interfaceOleg Gaidarenko2015-08-161-39/+39
| | | | | | | | | | | | http://qunitjs.com/upgrade-guide-2.x/ For most of the boring work was used https://github.com/apsdehal/qunit-migrate package However, it can't update local qunit helpers, plus in some places old QUnit.asyncTest signature is still used Fixes gh-2540
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-11-031-4/+2
| | | | | | | | That includes Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Closes gh-1820 Refs gh-1815
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-2/+4
| | | | in tests. Fixes #13755.
* No ticket: Revise unit tests in anticipation of Sizzle-free buildsRichard Gibson2013-02-221-2/+2
|
* Ignore file inputs when serializing forms. File input serialization is ↵Timmy Willison2013-01-231-2/+3
| | | | handled by plugins. Fixes #13306.
* Extracts the serialization code from the ajax module so that alternative ↵jaubourg2012-07-131-0/+145
ajax implementations can use it without the need for the whole ajax module to be included in the build.