aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/testinit.js
Commit message (Collapse)AuthorAgeFilesLines
* Manage bower dependencies with grunt-bowercopyTimmy Willison2013-12-061-1/+1
| | | | | | | | | | | | Tracked bower dependencies are located at "src/sizzle" and "test/libs". The source-destination mapping is in the Gruntfile. When updating a bower dependency, update the version in bower.json, run `grunt bower`, and then commit the result. When adding a dependency, update the bowercopy task accordingly. Fixes #14615. Closes gh-1452.
* Use grunt and bower packages as local dependencies. Close gh-1433.Timmy Willison2013-11-141-1/+3
|
* No ticket: Fix subproject iframe testsRichard Gibson2013-10-111-5/+10
|
* Convert testrunner to an AMD module and ensure jQuery is on the page when ↵Timmy Willison2013-09-061-55/+58
| | | | executing the testrunner (another race condition amplified by swarm)
* No ticket: link testinitTimmy Willison2013-09-061-1/+1
|
* Move test loader to testinit.js. Fix race condition with dependency loading.Timmy Willison2013-09-061-0/+67
|
* No ticket: Hide the testing-support jQuery from testsRichard Gibson2013-09-031-6/+7
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-10/+1
|
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-67/+64
| | | | in tests. Fixes #13755.
* Remove the define.amd.jQuery check, ref gh-1150.jrburke2013-02-281-3/+1
|
* Make compatible with jshint, lint test/data. Close gh-1043.Timo Tijhof2012-12-061-2/+2
|
* Revert "Organizes the php scripts used for testing better, so that the whole ↵jaubourg2012-12-051-36/+10
| | | | | | 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.
* Revert "228ab3d followup 1: fix test failures. Close gh-1056."jaubourg2012-12-051-4/+4
| | | | This reverts commit 20608b3579d70d3bac7fd74b4e11e4c08cd9d9b5.
* 228ab3d followup 1: fix test failures. Close gh-1056.Richard Gibson2012-12-051-4/+4
|
* Organizes the php scripts used for testing better, so that the whole logic ↵jaubourg2012-12-041-10/+36
| | | | 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.
* More improvements per @jaubourgRichard Gibson2012-12-031-22/+28
|
* Improvements per @jaubourgRichard Gibson2012-12-031-1/+3
|
* No ticket: improve global variable/ajax request trackingRichard Gibson2012-12-021-24/+31
|
* sandboxes start for real this time (fixes test failures in IE)jaubourg2012-11-271-8/+0
|
* Greatly simplifies ajaxTestjaubourg2012-11-261-65/+45
|
* Total revamping of the ajax unit testsjaubourg2012-11-261-0/+71
|
* Remove gratuitous punctuationRichard Gibson2012-11-011-3/+3
|
* No ticket: remove test suite external dependenciesRichard Gibson2012-11-011-18/+17
|
* Fix testing of no-ajax custom buildsRichard Gibson2012-11-011-4/+6
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-46/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 #12048. Set attributes for XML fragments. Close gh-965.Sai Wong2012-10-201-0/+15
|
* Test: Clean up and fix misc issuesTimo Tijhof2012-10-091-3/+6
| | | | | | | | | | | | * 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
* Fix #12282. IE has premature .readyState == "interactive". Close gh-901.Mike Sherov2012-08-201-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.
* 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.
* 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 #10067. Create jQuery.quickReady; closes gh-736.Mike Sherov2012-04-231-1/+24
| | | | 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.
* 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)
* 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 #10693, generalizes the "test something in an iframe" code when a ↵Mike Sherov2012-02-231-0/+32
| | | | callback isn't needed
* fixes #10901, PHP required for unit tests, but still allow the tests to runMike Sherov2012-02-161-1/+2
|
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-5/+5
| | | | deprecated in QUnit.
* Add a way to fire native events using dispatchEvent/fireEvent in ↵timmywil2011-10-281-1/+15
| | | | testinit.js; fixes failing click test in FF3.6
* Landing pull request 331. Add support for registering jQuery as an AMD ↵jrburke2011-09-191-1/+13
|\ | | | | | | | | | | | | | | module. Fixes #7102. More Details: - https://github.com/jquery/jquery/pull/331 - http://bugs.jquery.com/ticket/7102
| * Add support for registering jQuery as an AMD module. Only does so if the AMD ↵jrburke2011-04-161-1/+13
| | | | | | | | loader indicates it has special allowances for multiple versions of jQuery being loaded in a page.
* | Override Sizzle attribute retrieval with jQuery.attr. Fixes #5637, #7128, ↵timmywil2011-09-191-2/+1
|/ | | | | | #9261, #9570, #10178. Bug fixed on the side: $(window).is('a') was throwing an exception. Fixes #10178.
* Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-091-0/+49
| | | | globals and fix all leaks in the tests.
* Revert "Register as a CommonJS async module if in that kind of environment. ↵wycats2011-01-051-6/+1
| | | | | | | | | | Fixes #7102." This reverts commit 6ffa730721a8ebcd128f3dc202706e46d9cfe249. Conflicts: src/core.js
* Register as a CommonJS async module if in that kind of environment. Fixes #7102.jrburke2010-12-271-1/+6
|
* Fixed the q() method to use same instead of isSet.John Resig2009-09-291-2/+2
|