aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Ref #13483: Cherry-pick tests from master ↵Renato Oliveira dos Santos2013-05-131-0/+60
| | | | ea5c22ec12e6a548b1ec2d7b0dcd9f71bea8d5dd
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-91/+104
| | | | | | | | | | | | | | | | in tests. Fixes #13755. Conflicts: src/.jshintrc src/data.js test/unit/attributes.js test/unit/core.js test/unit/data.js test/unit/event.js test/unit/manipulation.js test/unit/queue.js test/unit/traversing.js test/unit/wrap.js
* No ticket: Revise unit tests in anticipation of Sizzle-free buildsRichard Gibson2013-02-221-9/+20
| | | | (cherry picked from commit 59f5adb622dd6bc3419bbaa9cc2d4acd7a0b08b9)
* Ref #12846 and 3b6d8941d8. Fix unit test for IE6.Dave Methvin2013-02-021-2/+6
|
* Fix #12846. Restore overflow when animation is stopped.Dave Methvin2013-01-261-2/+4
| | | | (Cherry picked from a6c358d)
* Fix #13183: Wrong animation initial value calc. Close gh-1136.Mike Sherov2013-01-151-7/+24
|
* Adding some more test coverage for .finish()Corey Frang2013-01-091-1/+72
|
* Fix #13103. Add .finish() method. Cherry picked from ↵Corey Frang2013-01-081-0/+49
| | | | b6abb31df4d5be80dc13844d9988fb0c990ae5ae.
* Fix #12803. Add jQuery.fx.start as a hook point. Close gh-1024.Corey Frang2012-11-251-0/+27
|
* No ticket: speedup effects testsRichard Gibson2012-11-121-88/+50
|
* No ticket: speedup test suite. Close gh-1020.Richard Gibson2012-11-081-75/+72
|
* Rewriting unit test to be less sticky based on time issuesCorey Frang2012-11-071-18/+27
|
* Fixing unitsCorey Frang2012-11-071-3/+3
|
* Keep track of a hiding state for toggle based animations - Fixes #8685Corey Frang2012-11-071-0/+44
| | | | Closes gh-1018
* Ensure each tick gets it's own fxNow - Fixes #12837 - Thanks @chadparryCorey Frang2012-11-071-0/+29
| | | | | Closes gh-1022 Closes gh-1021
* No ticket: fix effects test failure in IE6. Close gh-1012.Timo Tijhof2012-10-311-1/+5
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-52/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* Convert all jQuery.removeData(foo, bar, true) calls to jQuery._remove(foo, bar)Rick Waldron2012-10-161-4/+4
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* enforce double quotes via JSHint. Closes gh-975Mike Sherov2012-10-161-9/+9
|
* Enforce expects in effects.js ↵James Huston2012-10-151-0/+2
| | | | (https://github.com/jquery/2012-dev-summit/issues/53) Closes gh-960
* Fix #12537, element.css('filter') returns undefined in IE9. Close gh-942.Mike Sherov2012-09-301-1/+1
|
* Fix #12273. Don't call easing functions for duration 0 animations. Close gh-895.Corey Frang2012-08-191-0/+18
|
* Wait for both .stop() tests to finish, don't count on timing.Dave Methvin2012-08-091-7/+13
|
* Adding a check for double progress call in effects unitsCorey Frang2012-07-251-0/+4
|
* Give .stop() queue animations more leeway for Stutterin' Swarmy.Dave Methvin2012-07-251-2/+2
| | | | This test sometimes fails with only 2 animations left in the queue, so this extends the first animation in case we're running afoul of the one-second rule for background windows.
* This should repair the unitCorey Frang2012-07-251-23/+21
|
* Trying to repair a unitCorey Frang2012-07-251-19/+23
|
* Fix the logic to set overflow:hidden on width & height animations - Fixes ↵Corey Frang2012-07-201-0/+14
| | | | #12117 - Closes gh-869
* You can't hurry tests, no, you just have to wait.Dave Methvin2012-07-101-2/+2
| | | | The 100ms here is just too fast and flakey, it causes random fails in swarmy runs.
* Fix #11971 unit test in browsers lacking backgroundPositionX.Richard Gibson2012-07-091-0/+7
| | | | Closes gh-850.
* Fix #11971: force numeric animation start to be numeric, closes gh-836.Richard Gibson2012-07-051-3/+36
|
* Make unit tests friendly to Closure Compiler. Closes gh-845.Chad Killingsworth2012-07-051-29/+31
| | | | | | Conflicts: test/unit/effects.js test/unit/offset.js
* UPDATE SIZZLE: completed rewrite for better things!timmywil2012-07-021-4/+14
| | | | Remove reverse in traversing for comma selectors. Sizzle's handling of commas is now more consistent.
* Completes #11799: Maybe .progress() was cooler than I thought.Corey Frang2012-06-251-5/+17
| | | | Generate a .progress() for each step of an animation, once all properties are changed. Closes gh-835.
* Fix #11797. Use Deferred for better animation callbacks. Closes gh-830.Corey Frang2012-06-221-4/+65
| | | | In particular, an animation stopped with `gotoEnd` will be rejected.
* Unit tests are linted and passing.Rick Waldron2012-06-211-25/+29
|
* Check animation is close instead of exact, closes gh-823.Mike Sherov2012-06-111-1/+2
|
* Fix regression for "-200px" in animations; closes gh-822.Mike Sherov2012-06-111-0/+9
| | | | Also removes fake IIFEs ffrom effects.
* Fix #8109, percent animations; fix #11854, wrong this, close gh-808Jeffery To2012-06-111-0/+18
|
* Make dimensions modular, adds optional build flag. Fixes #11856Mike Sherov2012-06-051-34/+34
|
* Add quick-start documentation for testing with QUnit and using jQuery's ↵timmywil2012-05-291-1/+1
| | | | helper methods.
* Fix #11767. Modularize build and unit tests for exluding effects.Richard Gibson2012-05-281-94/+14
| | | | Closes gh-785. To build a version of jQuery without effects, use `grunt build:*:*:-effects`. The unit tests feature-check for the interfaces and skip the unit tests for effects if they don't detect it.
* Optimizations to animation queue/promise logic, closes gh-776.Corey Frang2012-05-221-0/+81
|
* Fix #11755. Avoid :hidden selector for animations. Closes gh-774.Oleg2012-05-221-2/+110
|
* Fix #7157. Animation callbacks shouldn't see an element as :animated.Corey Frang2012-05-181-0/+11
| | | | Unless of course, there are other animations to be done! Closes gh-775.
* Fixes #8892: Adding unit test for #8892 - Actually fixed in 58ed62eCorey Frang2012-05-111-0/+14
|
* Scalarize [value, easing] before css-expanding; closes gh-750.Richard Gibson2012-05-111-0/+47
|
* Effects: 1.8 Animation Rewrite - thanks @mikesherov and @gibson042Corey Frang2012-04-231-1/+62
|
* Followup to #11469; add test case and clarify code.Sindre Sorhus2012-04-041-0/+9
|
* Add more delay to the "halfway" tests for non-focused cases.Dave Methvin2012-03-051-1/+1
| | | | When the browser window isn't visible, setTimeouts have 1-second granularity.