aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/data.js
Commit message (Collapse)AuthorAgeFilesLines
* Data: Work around IE11 bug with onpageshow attributeDave Methvin2014-04-301-0/+6
| | | | Fixes #14894
* Fix #14074: element id="nodeName". Close gh-1389.Richard Gibson2013-11-071-3/+19
| | | | | | | | | | | (cherry picked from commit 126d596b56924613687329b7aab4f0cdf4b593b3) Conflicts: src/data.js src/data/accepts.js test/unit/core.js test/unit/data.js
* Fix #14101: $().data() should be undefined, not nullCorey Frang2013-11-061-0/+6
|
* Fix #14459: Use jQuery.parseJSON instead of JSON.parseRichard Gibson2013-10-281-12/+2
|
* Ref 2263134b: Better identify potential JSON. Close gh-1401.Ronny Springer2013-10-161-12/+45
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-8/+8
|
* Fixes #14047 jQuery.data should not miss data-* w/ hyphenated property namesRick Waldron2013-06-241-0/+11
| | | | | http://bugs.jquery.com/ticket/14047 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fixes #13850. Better removal of hyphenated data property names.Rick Waldron2013-05-021-0/+29
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fixes #13815: Ensure each element has its own private data object - Tests by ↵Corey Frang2013-04-241-0/+12
| | | | @rwldrn
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-22/+29
| | | | in tests. Fixes #13755.
* Move size() test to deprecated.js and avoid in other tests. Close gh-1237.Michał Gołębiowski2013-04-081-1/+1
|
* Fixes #8335. Do not allow add data to non-elements (2.x). Closes gh-1232Oleg Gaidarenko2013-04-081-8/+20
|
* Removes unnecessary "object/applet" element test from data tests.Rick Waldron2013-04-071-7/+0
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Avoid side-effects when calling jQuery.hasDataRick Waldron2013-04-011-0/+11
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* bind/unbind changed to on/off in unit tests; refs #13554Michał Gołębiowski2013-03-251-2/+2
|
* Fix typos, close gh-1187.stonelee2013-03-251-1/+1
|
* Make data test titles more consistent and accurateRick Waldron2013-03-031-7/+7
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fixes #13551. Guard against illegal data access by undefined elem-ownerRick Waldron2013-03-031-0/+11
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* test/unit/data.js style nitsRick Waldron2013-03-021-9/+11
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fixes #13550. .data should not miss attr() set data-* with hyphenated ↵Michał Gołębiowski2013-03-021-5/+13
| | | | property names. Closes gh-1189
* Fixes #13548. .data should not miss attr() set data-* with hyphenated ↵Rick Waldron2013-03-011-1/+12
| | | | property names
* Old acceptData tests refactored and adapted to support new data systemRick Waldron2013-02-281-27/+21
|
* Refactor: Data.prototype.access. Thanks to @RubyLouvre and @gibson042. ↵Rick Waldron2013-02-131-8/+26
| | | | Closes #1167
* Optimized Data rewriteRick Waldron2013-02-111-4/+7
|
* 2.0: Rewrite data.js (Incl. event, manipulation, tests)Rick Waldron2013-02-031-2/+36
|
* Fix #8335: Avoid memory leak by never setting data on non-element ↵danilsomsikov2013-01-161-1/+12
| | | | non-document nodes. Close gh-1127.
* Remove deleteExpando detect.Dave Methvin2013-01-031-34/+0
|
* Revert data.js rewrite.Dave Methvin2013-01-031-35/+6
| | | | | | | | | | | | | | | | | | | | | | Reverts the following commits: commit f717226b3a44f918eec30b2d59ab257270189bc3 Author: Rick Waldron <waldron.rick@gmail.com> Date: Mon Dec 31 18:06:38 2012 -0500 Only splice from internal arrays when item actually exists. commit b9cdc4136b688963d1dc4befb169be02a0216ba9 Author: Rick Waldron <waldron.rick@gmail.com> Date: Mon Dec 31 16:20:35 2012 -0500 Updates to data.js re-write to pass events and manipulation commit d1de3000c6d50c298de14fb1ae3381d75c303723 Author: Rick Waldron <waldron.rick@gmail.com> Date: Mon Dec 31 15:09:45 2012 -0500 2.0: Rewrite data.js
* 2.0: Rewrite data.jsRick Waldron2012-12-311-6/+35
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Restore jQuery.access parameter mistakenly removed in 80d45a69Richard Gibson2012-11-061-25/+38
|
* Fix #10544. Remove deprecated .data() event namespaced triggering.Dave Methvin2012-10-311-58/+1
| | | | Data events were horribly slow, never documented, and caused strange interpretation of data items with dots in them.
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-75/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removed inline usage of QUnit.reset() because it is messing with the expectation model as reset does .empty() which does a recursive cleanData on everything in #qunit-fixture, so any expectJqData above .reset() would fail negatively. Instead of calling reset inline, either updated the following assertions to take previous assertions' state into account, or broke the test() up into 2 tests at the point where it would call QUnit.reset. * After introducing the new memory leak discovery a whole bunch of tests were failing as they didn't clean up everything. However I didn't (yet) add QUnit.expectJqData calls all over the place because in most if not all of these cases it is valid data storage. For example in test "data()", there will be an internal data key for "parsedAttrs". This particular test isn't intending to test for memory leaks, so therefor I made the new discovery system only push failures when the test contains at least 1 call to QUnit.expectJqData. When not, we'll assume that whatever data is being stored is acceptable because the relevant elements still exist in the DOM anyway (QUnit.reset will remove the elements and clean up the data automatically). I did add a "Always check jQuery.data" mode in the test suite that will trigger it everywhere. Maybe one day we'll include a call to everywhere, but for now I'm keeping the status quo: Only consider data left in storage to be a problem if the test says so ("opt-in"). * Had to move #fx-tests inside the fixture because ".remove()" test would otherwise remove stuff permanently and cause random other tests to fail as "#hide div" would yield an empty collection. (Why wasn't this in the fixture in the first place?) As a result moving fx-tests into the fixture a whole bunch of tests failed that relied on arbitrary stuff about the document-wide or fixture-wide state (e.g. number of divs etc.). So I had to adjust various tests to limit their sample data to not be so variable and unlimited... * Moved out tests for expando cleanup into a separate test. * Fixed implied global variable 'pass' in effects.js that was causing "TypeError: boolean is not a function" in *UNRELATED* dimensions.js that uses a global variable "pass = function () {};" ... * Removed spurious calls to _removeData. The new test exposed various failures e.g. where div[0] isn't being assigned any data anyway. (queue.js and attributes.js toggleClass). * Removed spurious clean up at the bottom of test() functions that are already covered by the teardown (calling QUnit.reset or removeClass to supposedly undo any changes). * Documented the parentheses-less magic line in toggleClass. It appeared that it would always keep the current class name if there was any (since the assignment started with "this.className || ...". Adding parentheses + spacing is 8 bytes (though only 1 in gzip apparently). Only added the comment for now, though I prefer clarity with logical operators, I'd rather not face the yayMinPD[1] in this test-related commit. * Updated QUnit urlConfig to the new format (raw string is deprecated). * Clean up odd htmlentities in test titles, QUnit escapes this. (^\s+test\(.*)(&gt\;) → $1> (^\s+test\(.*)(&lt\;) → $1< [1] jQuery MinJsGz Release Police Department (do the same, download less)
* Simplify tests for #12786, reduce to only those required to support the fixRick Waldron2012-10-251-57/+22
|
* Less deep and more strict.Rick Waldron2012-10-251-2/+2
|
* Remove .hyphen property from tests (left behind in refactoring)Rick Waldron2012-10-241-6/+3
|
* Brute force property removal when removeData([a,b,c]). Fixes #12786Rick Waldron2012-10-241-0/+70
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Create private methods for processing data/removeData requests. Fixes ↵carldanley2012-10-161-9/+9
| | | | #12519, Closes gh-976
* enforce double quotes via JSHint. Closes gh-975Mike Sherov2012-10-161-3/+9
|
* Fix #10863. Allow newlines in JSON data- attributes.Dave Methvin2012-08-231-1/+8
|
* Fix #7579. Don't convert to number if it changes the string. Close gh-852.Dave Methvin2012-07-251-3/+7
| | | | Net effect here is that hex numbers and most exponential-format numbers or long sequences of digits will remain strings rather than being coerced to numbers. `The people have spoken.
* Make unit tests friendly to Closure Compiler. Closes gh-845.Chad Killingsworth2012-07-051-15/+15
| | | | | | Conflicts: test/unit/effects.js test/unit/offset.js
* Unit tests are linted and passing.Rick Waldron2012-06-211-12/+19
|
* Fix #11435. Remove obsolete test code.Andy Monat2012-04-041-6/+0
|
* Fix #11309. Recognize hexadecimal in data attributes.Sindre Sorhus2012-02-091-1/+3
|
* Fix #5571. Setters should treat `undefined` as a no-op and be chainable.Richard Gibson2011-12-061-2/+1
|
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-78/+78
| | | | deprecated in QUnit.
* Landing pull request 512. 1.7 - removeData now takes space separated lists ↵Corey Frang2011-09-191-1/+23
| | | | | | | | and arrays of keys - Fixes #7323. More Details: - https://github.com/jquery/jquery/pull/512 - http://bugs.jquery.com/ticket/7323
* Landing pull request 503. 1.7 data: set a flag in the private data cache to ↵Corey Frang2011-09-191-0/+21
| | | | | | | | avoid having to scan attributes multiple times - Fixes #8909. More Details: - https://github.com/jquery/jquery/pull/503 - http://bugs.jquery.com/ticket/8909
* Landing pull request 500. 1.7 - "public data" stored as a key on "internal ↵Corey Frang2011-09-191-7/+8
| | | | | | | | data" - Fixes #8921. More Details: - https://github.com/jquery/jquery/pull/500 - http://bugs.jquery.com/ticket/8921
* Bug in rmultidash. Fixes #10194rwldrn2011-09-071-10/+13
|