aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/dimensions.js
Commit message (Collapse)AuthorAgeFilesLines
* Docs: Add support comments for prefixed box-sizingMichał Gołębiowski2014-02-051-0/+1
|
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-26/+37
| | | | | | | | | | | | | | | | 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
* Fix typos. Close gh-1186.dmitrygusev2013-02-281-4/+4
|
* No ticket: Revise unit tests in anticipation of Sizzle-free buildsRichard Gibson2013-02-221-2/+2
| | | | (cherry picked from commit 59f5adb622dd6bc3419bbaa9cc2d4acd7a0b08b9)
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-6/+6
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fix #12243, $("col").width() should return the column's width. Close gh-916.Mike Sherov2012-08-291-6/+7
|
* Fix #12283. Return null for dimension getters on non elements. Fix gh-900.Mike Sherov2012-08-191-0/+16
|
* No ticket: fix failure from zero-assertion test generating a second empty OL ↵Richard Gibson2012-08-091-1/+3
| | | | element. Closes gh-888
* Fix #12088, Safari 5 and more percentages in getComputedStyleMike Sherov2012-07-221-7/+0
| | | | In particular, min-width and max-width are taunting the awesome hack. Closes gh-865.
* Make unit tests friendly to Closure Compiler. Closes gh-845.Chad Killingsworth2012-07-051-20/+20
| | | | | | Conflicts: test/unit/effects.js test/unit/offset.js
* Unit tests are linted and passing.Rick Waldron2012-06-211-8/+8
|
* Don't swap to measure dimensions unless the element is display:none. #807 ↵Mike Sherov2012-06-071-0/+10
| | | | Fixes #11293
* Remove unnecessary haunted house guards.Rick Waldron2012-06-061-8/+3
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fixes two typosRick Waldron2012-06-061-1/+1
|
* Conditionally run height/width in iframeTestRick Waldron2012-06-061-2/+7
|
* Ensure both height and width port functions exist before attempting to run ↵Rick Waldron2012-06-061-1/+1
| | | | | | dimensions tests. Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fixe dimensions tests. No core code changes. Supplements #11856Mike Sherov2012-06-061-3/+9
|
* Make dimensions modular, adds optional build flag. Fixes #11856Mike Sherov2012-06-051-0/+11
|
* Fix #11724, $(document).height() in Firefox 12. Closes gh-802.Mike Sherov2012-05-311-6/+6
| | | | This reopens #3838 for IE6 which is a regression on a fix in 1.7.2, but we'd rather break a really old IE than a really recent Firefox.
* Add quick-start documentation for testing with QUnit and using jQuery's ↵timmywil2012-05-291-0/+12
| | | | helper methods.
* Fix #10877. Make outerWidth/Height a setter. Closes gh-783.Mike Sherov2012-05-211-22/+46
|
* Fix #6724, though the Mobile Safari wound remains. Closes gh-764.Matt Farmer2012-05-141-2/+6
|
* Update dimensions unit tests from changes in #11604Mike Sherov2012-04-271-8/+8
|
* Fix #10413, #10679. Fix box-sizing:border-box and add css vendor prefix support.Mike Sherov2012-04-061-4/+53
|
* Fix #3838, $(document).height() incorrect in IE6Mike Sherov2012-03-021-0/+14
| | | | May still be broken in Netscape Navigator 4.
* Fix #5571. Setters should treat `undefined` as a no-op and be chainable.Richard Gibson2011-12-061-4/+14
|
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-58/+58
| | | | deprecated in QUnit.
* Landing pull request 562. Make sure runtimeStyle isn't affected by ↵Mike Sherov2011-10-281-0/+23
| | | | | | | | dimensions. Fixes #9233. More Details: - https://github.com/jquery/jquery/pull/562 - http://bugs.jquery.com/ticket/9233
* Add support for calling outer/inner Width/Height on the window and document. ↵timmywil2011-09-301-16/+29
| | | | Fixes #9434.
* Optimize width/height retrieval (moved logic to getWH, removed adjustWH). ↵timmywil2011-06-061-7/+8
| | | | Supplements #9441, #9300.
* Add margin after checking width. Add tests. Fixes #9441. Fixes #9300.Mike Sherov2011-06-061-0/+24
|
* Return null for outer/inner width/height calls on window/document. Fixes #7557.timmywil2011-05-251-4/+26
|
* revert to old code, bug is invalidJordan Boesch2011-04-151-79/+0
|
* fixing bug 4146 - round 2!Jordan Boesch2011-04-131-0/+79
|
* third batchlouisremi2011-04-121-6/+6
|
* Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-091-1/+17
| | | | globals and fix all leaks in the tests.
* Clean trailing whitespace from all files.Colin Snover2010-12-301-15/+15
|
* Maintain returning 0px from width/height for disconnected nodes for ↵jeresig2010-11-091-4/+24
| | | | backwards compat, for now. Fixes #7395.
* Add .width() and .height() unit test for empty sets. Fix .height() test that ↵Brandon Aaron2010-09-011-3/+9
| | | | was masquerading as a .width() test. Made sure .width() and .height() tests were in-sync (testing the same things).
* Changed the order of the tests to run in the same order in which they're ↵jeresig2010-03-231-1/+1
| | | | specified in the Makefile (fixed a dimensions test bug that popped up as a result).
* Added in .height(fn) and .width(fn) support. Fixes #5915.jeresig2010-01-231-22/+56
|
* Make sure that calling .width(num) or .height(num) on an empty set returns ↵John Resig2009-12-091-3/+9
| | | | the empty set. Fixes #5600.
* moving dimension related unit tests to dimensions test moduleBrandon Aaron2009-03-221-0/+56
|
* test runner: the changes are:Ariel Flesler2008-05-281-4/+4
| | | | | | | - Replaced all the $ for jQuery in the tests and suite. - Added a noConflict to testrunner.js. - Modified the test for noConflict() so that it still work. - Added jQuery 1.2.1 and 1.2.3 to otherlibs.
* Updating outerWidth unit test to use absolute positionBrandon Aaron2008-05-131-1/+2
|
* Merged dimensions with coreBrandon Aaron2008-04-291-0/+85