aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/manipulation.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix #13401: replaceWith(""). Close gh-1163.Mark Raddatz2013-02-081-0/+9
|
* Fix #12656. Make event shorthands excludable.Dave Methvin2013-01-271-26/+26
|
* Fix #13232, fix jQuery.buildFragment for tables, close gh-1138.Oleg2013-01-201-0/+29
|
* Fix #13233: re-allow .replaceWith of text nodes. Close gh-1137.Richard Gibson2013-01-161-1/+5
| | | | (cherry picked from commit 6b1b0a26b4d485b4d9f334286efed5dfe33e3f3f)
* No ticket: improve replaceWith testingRichard Gibson2013-01-161-55/+35
| | | | (cherry picked from commit 13468abaeb5488d547bc75d99bc3425ee891859e)
* Ref gh-1117: Don't stop on a falsy value in buildFragment. Close gh-1124.Oleg2013-01-091-2/+2
|
* Adjusts unit test regarding exception in injected scripts so that it ↵jaubourg2013-01-081-9/+13
| | | | accounts for the exception being thrown in an event loop for remote scripts
* Bring back jQuery.buildFragment and remove jQuery.cleanOleg2013-01-081-19/+2
|
* Remove noCloneEvent detects and white-box unit test.Dave Methvin2013-01-031-42/+0
|
* Add tests for th elementOleg2012-12-281-2/+2
|
* Add more tests for wrapMapOleg2012-12-281-1/+2
|
* Add test for td appendOleg2012-12-281-2/+2
|
* wrapMap.thead = wrapMap.trOleg2012-12-281-2/+2
| | | | Add support comments
* Rewrite tests for colgroup, captionOleg2012-12-281-7/+8
| | | | Add tests for thead, tbody, tfoot
* Add comments for optgroup and option elements in wrapMapOleg2012-12-281-1/+5
| | | | Add tests for optgroup element
* Remove fix for #4484, add more testsOleg2012-12-281-2/+7
|
* Use tabs instead of spacesOleg2012-12-241-1/+1
|
* Use tabs instead of spacesOleg2012-12-241-4/+4
| | | | "$" => "jQuery"
* Add additional testOleg2012-12-241-0/+9
|
* Add additional testOleg2012-12-241-0/+1
|
* Fix #13094. Pass index to .before(fn) fn as documented. Close gh-1093.Oleg2012-12-201-0/+8
|
* Resolve a763ae72 test failuresRichard Gibson2012-12-151-4/+1
|
* Ref #8908, gh-886. Avoid clone identity crisis in IE9/10. Close gh-1036.Oleg2012-12-131-67/+0
|
* Fix #11230. .appendTo and pals should always stack.Dave Methvin2012-12-131-5/+5
|
* Fix #4087. insertAfter, insertBefore, etc do not work if origin and ↵Paul Ramos2012-12-111-0/+34
| | | | destination are same element. Close gh-1068.
* Test: Update index.html to new QUnit format. Close gh-1061.Timo Tijhof2012-12-101-2/+2
| | | | Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
* Fix #13019. Disconnected nodes with .replaceWith are a noop. Close gh-1062.Dave Methvin2012-12-091-42/+3
|
* Revert "Organizes the php scripts used for testing better, so that the whole ↵jaubourg2012-12-051-1/+1
| | | | | | 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." This reverts commit 228ab3ddae527f72cc3122a1c6115d7718bcfd57.
* Radical idea: Calculate `expect()` value before fn call. :purple_heart:Dave Methvin2012-12-041-2/+2
|
* Fixes #12449. make replaceWith() clone elements where required. Closes gh-920Rod Vagg2012-12-041-94/+111
|
* Fix #11989. Remove fragment cache, moving to jquery-compat. Close gh-1052.Paul Ramos2012-12-041-64/+0
|
* Fix #12756. Restyle manipulation unit tests. Close gh-1053.Paul Ramos2012-12-041-598/+798
| | | | https://github.com/jquery/2012-dev-summit/issues/56
* Organizes the php scripts used for testing better, so that the whole logic ↵jaubourg2012-12-041-1/+1
| | | | 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.
* No ticket: improve global variable/ajax request trackingRichard Gibson2012-12-021-11/+1
|
* keep manipulation.js assertions consistentRichard Gibson2012-11-301-1/+1
|
* Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044.Oleg2012-11-271-4/+6
|
* Fix #9960, allow manipulation for parent document nodes. Close gh-924.dcooper2012-11-241-0/+18
|
* Fix #3827. Get the correct checkbox status for a click handler.Dave Methvin2012-11-241-1/+1
|
* Fix #12920: remove addMandatoryAttributes. Close gh-1037.Richard Gibson2012-11-201-25/+9
|
* Fix #11795, #10470: keep scripts in DOM; execute only on first insertion. ↵Richard Gibson2012-11-191-78/+161
| | | | Close gh-864.
* Fix #8908. Don't let change to originals affect clones in IE9/10. Close gh-886.Elijah Manor2012-11-181-0/+41
|\
| * Add support check, added assertion to check if cleared, add edge case for ↵Elijah Manor2012-08-131-9/+14
| | | | | | | | backgroundPosition
| * Fix weird clone bug and add a unit test to verifyElijah Manor2012-08-081-0/+36
| |
* | Fix #12858: don't expose jQuery/Sizzle expandosRichard Gibson2012-11-091-5/+14
| |
* | No ticket: speedup test suite. Close gh-1020.Richard Gibson2012-11-081-174/+138
| |
* | Followup to gh-997, decode entities in test names. Close gh-1013.Timo Tijhof2012-11-011-3/+3
| |
* | Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-35/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* | Elements created from html strings have a parentnode. Fixes #12392Oleg2012-10-251-5/+22
| |
* | Refactored before/after/replaceWith to not pushStack. Fixes #12664, closes ↵Sai Wong2012-10-161-11/+63
| | | | | | | | gh-987
* | Fix #11280. IE6-8 need name attribute to parse param. Close gh-914.Daniel Galvez2012-10-161-0/+32
| |