aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
Commit message (Collapse)AuthorAgeFilesLines
...
* No ticket: update test suite to pass QUnit globals check in most ↵Richard Gibson2012-11-051-2/+7
| | | | environments. Close gh-1016.
* Remove gratuitous punctuationRichard Gibson2012-11-011-3/+3
|
* No ticket: remove test suite external dependenciesRichard Gibson2012-11-014-24/+23
|
* Fix testing of no-ajax custom buildsRichard Gibson2012-11-013-14/+23
|
* No ticket: fix effects test failure in IE6. Close gh-1012.Timo Tijhof2012-10-311-7/+29
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-282-48/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* Fix #11542. document.body should not be special in .offset() and ↵Daniel Gálvez2012-10-241-1/+3
| | | | document.documentElement is the default element.offsetParent. Close gh-899.
* Fix #12048. Set attributes for XML fragments. Close gh-965.Sai Wong2012-10-201-0/+15
|
* no ticket: fix jQuery suite failure on AndroidRichard Gibson2012-10-171-1/+1
|
* Fixes #11635, Explicit overflow:auto is overridden by inline overflow:hidden ↵Mike Petrovich2012-10-161-0/+23
| | | | during animation, closes gh-981
* Remove duplicate expect. Add QUnit.config.requireExpects to testrunner.js ↵Rick Waldron2012-10-151-0/+3
| | | | QUnit configurations.
* Test: Clean up and fix misc issuesTimo Tijhof2012-10-092-7/+7
| | | | | | | | | | | | * Clean up testinit and testrunner * Uncomment isLocal (at least make sure it is declared) * Rephrase environment assertions to make sense if one reads them when they pass. * Optimise an expensive loop that might be the cause of this in IE6: http://cl.ly/image/3f20053m112n
* Scorch the earth and retreat on readyState interactive! Close gh-907.Mike Sherov2012-08-234-102/+0
|
* Fix #12266. IE9/10 says document[0] is document.frames[0]? Close gh-903.Elijah Manor2012-08-221-0/+36
|
* Neuter the partialLoadReady test until it's ngnix-readyDave Methvin2012-08-221-3/+3
|
* Fix #12282. IE has premature .readyState == "interactive". Close gh-901.Mike Sherov2012-08-202-1/+41
|
* Don't expect QUnit to clean up jQuery internal data. Close gh-883.Dave Methvin2012-08-191-2/+9
|
* Really support subproject tests in testswarm, closes gh-868Richard Gibson2012-07-221-61/+107
|
* Let subproject tests use their own test fixture. Closes gh-867.Dave Methvin2012-07-191-0/+74
|
* Image location is relative to css file, not html file.Dave Methvin2012-07-121-1/+1
|
* Fix #11547. toLowerCase not work good on XML attributes.Dave Methvin2012-07-111-1/+1
| | | | This was fixed to some extent in gh-724 but there were insufficient test cases. Removing the lowercase completely allows IE 6/7 to work properly since there you need an exact case match for attributes, even in HTML docs. More discussion and test cases in the comments on gh-724.
* Fix #12018, readyState "interactive" in oldIE lies! Closes gh-848.Mike Sherov2012-07-065-23/+57
|
* Fix #11971: force numeric animation start to be numeric, closes gh-836.Richard Gibson2012-07-051-1/+4
|
* Adds src/deprecated.js, test/unit/deprecated.js; -deprecated flag; Moves ↵Rick Waldron2012-06-251-2/+2
| | | | jQuery.browser and removes use in test/unit/ajax.js. Fixes #11965
* Tweak test for #11743 in an attempt to placate Jenkins.Dave Methvin2012-06-111-0/+1
| | | | I can't get the current test to fail locally or in Browserstack, but suspect it may have something to do with badjson.js.
* Test: Remove unused file "include_js.php", closes gh-820.Timo Tijhof2012-06-111-106/+0
|
* Here is hoping everything works with the full build and the build without ↵jaubourg2012-06-111-2/+2
| | | | ajax... looking at you @dmethvin ;)
* Prevent total unit test meltdown ... and now over to @jaubourg!Dave Methvin2012-06-111-1/+1
|
* Some work to modularize ajax later on.jaubourg2012-06-111-1/+1
|
* Fix #11857. Modularize css.js, add dependency management. Closes gh-816.Mike Sherov2012-06-101-3/+2
| | | | See the pull request for more info on the dependency management details.
* Relativize all urls pertaining to dist/jquery.js so users can run their ↵timmywil2012-06-0417-17/+21
| | | | server from any file location; Make sure Sizzle is available for its tests in testrunner.
* Strips IIFEs from modules; Always require built jQuery for tests.Rick Waldron2012-06-0416-21/+21
|
* Fix #11724, $(document).height() in Firefox 12. Closes gh-802.Mike Sherov2012-05-311-0/+10
| | | | 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.
* Fix #11743: Don't mask script errors in jQuery.ajax, closes gh-795.Richard Gibson2012-05-311-1/+1
|
* Add quick-start documentation for testing with QUnit and using jQuery's ↵timmywil2012-05-291-5/+6
| | | | helper methods.
* Fix #11767. Modularize build and unit tests for exluding effects.Richard Gibson2012-05-281-1/+1
| | | | 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.
* Minor test suite adjustmentstimmywil2012-05-281-9/+13
|
* Fix indentation in /speed and /test dirs, closes gh-780.Trey Hunner2012-05-184-12/+12
|
* Fix #11721. Remove jQuery.boxModel, deprecate jQuery.support.boxModel.Mike Sherov2012-05-151-9/+0
| | | | | | This removes all internal uses of `jQuery.support.boxModel`. jQuery has never run unit tests with Quirks Mode and has not even feigned support for several years, so these remnants weren't doing much except giving false hope. For now, `jQuery.support.boxModel` continues to have a value indicating whether the W3C box model is *generally* in use, but be aware that this is easily overridden on an element-by-element basis by the `box-model` CSS property. So don't trust this value.
* Fixes #11402. domManip now also removes the closing part of HTML comments or ↵jaubourg2012-05-061-0/+10
| | | | CDATA surrounding executed scripts. Unit tests added.
* Transform $.bindReady into $.ready.promise. It is now possible to use ↵jaubourg2012-05-061-0/+17
| | | | $.ready.promise or $.when( $.ready ) to get the ready promise. Costs *1* byte min/gzipped. Unit test added.
* reduce complexity of ready further, and try manipulating DOM to make sure ↵Mike Sherov2012-05-042-0/+2
| | | | we're really ready
* remove jQuery.quickReady, save bytes, style nits in testsMike Sherov2012-05-044-64/+32
|
* Fix #10067. Create jQuery.quickReady; closes gh-736.Mike Sherov2012-04-239-15/+113
| | | | Allows us to get to the ready state sooner by not waiting for iframes to load. If that causes backcompat pain, use `jQuery.quickReady = false` as prescribed by your developer.
* Enforce 20s timeout for all unit tests.Timo Tijhof2012-04-201-4/+20
|
* Remove Ajax requirement for simple XML testsYehuda Katz2012-04-151-1/+50
| | | | | | | | | | | | Previously, all jQuery tests that wanted an XML document would make an Ajax request to go through jQuery's XML parsing logic in jQuery.ajax. Now, use jQuery.parseXML instead. This removes the need for the Ajax server for these tests, improves their performance, and decouples simple core tests from Ajax. (with scottgonzalez)
* Revert "No more php/js logic duplication..." on a hunch.Dave Methvin2012-03-071-59/+103
| | | | | | TestSwarm hasn't been happy since this commit, and everyone deserves to be happy. This reverts commit 318d47b730769f538dbc24800b9ad67ff8e73ea9.
* Makes sure start is always called with default context and no arguments. ↵jaubourg2012-03-071-1/+9
| | | | Should stop FF from acting up. Hopefully, this ugly patch can be removed in the future.
* Fixes #11264 or rather seriously limits the risk of global ajaxSettings ↵jaubourg2012-03-071-0/+1
| | | | screwing with script loading in domManip. Gotta love globals and sneaky dependencies. Unit test added.
* Fixes #11426: getting the responseText of an xhr should be tried/caught ↵jaubourg2012-03-071-0/+0
| | | | because of IE's inability to give access to binary data. Unit test added.