Commit Graph

211 Commits

Author SHA1 Message Date
Dave Methvin
83dfb99ea9 Tweak test for #11743 in an attempt to placate Jenkins.
I can't get the current test to fail locally or in Browserstack, but suspect it may have something to do with badjson.js.
2012-06-11 22:35:04 -04:00
Timo Tijhof
849303701a Test: Remove unused file "include_js.php", closes gh-820. 2012-06-11 21:18:17 -04:00
jaubourg
cac5b08f72 Here is hoping everything works with the full build and the build without ajax... looking at you @dmethvin ;) 2012-06-11 21:04:34 +02:00
Dave Methvin
142ff73450 Prevent total unit test meltdown ... and now over to @jaubourg! 2012-06-11 14:07:02 -04:00
jaubourg
ac48a19b92 Some work to modularize ajax later on. 2012-06-11 14:00:16 +02:00
Mike Sherov
5f35b3d9f9 Fix #11857. Modularize css.js, add dependency management. Closes gh-816.
See the pull request for more info on the dependency management details.
2012-06-10 21:54:16 -04:00
timmywil
37ffb29d37 Relativize all urls pertaining to dist/jquery.js so users can run their server from any file location; Make sure Sizzle is available for its tests in testrunner. 2012-06-04 18:04:11 -04:00
Rick Waldron
7c23b77af2 Strips IIFEs from modules; Always require built jQuery for tests. 2012-06-04 12:48:18 -04:00
Mike Sherov
ba70f8aeb6 Fix #11724, $(document).height() in Firefox 12. Closes gh-802.
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.
2012-05-31 09:24:44 -07:00
Richard Gibson
742872984e Fix #11743: Don't mask script errors in jQuery.ajax, closes gh-795. 2012-05-31 08:31:13 -07:00
timmywil
a8d9d05388 Add quick-start documentation for testing with QUnit and using jQuery's helper methods. 2012-05-29 13:13:26 -04:00
Richard Gibson
7f2cc46955 Fix #11767. Modularize build and unit tests for exluding effects.
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.
2012-05-28 22:36:23 -04:00
timmywil
3ee332b238 Minor test suite adjustments 2012-05-28 12:43:41 -04:00
Trey Hunner
f1dcaad097 Fix indentation in /speed and /test dirs, closes gh-780. 2012-05-18 13:28:50 -04:00
Mike Sherov
c4e22ad8b5 Fix #11721. Remove jQuery.boxModel, deprecate jQuery.support.boxModel.
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.
2012-05-15 23:29:20 -04:00
jaubourg
a743be19bd Fixes #11402. domManip now also removes the closing part of HTML comments or CDATA surrounding executed scripts. Unit tests added. 2012-05-06 01:27:01 +02:00
jaubourg
e3cf0e220c Transform $.bindReady into $.ready.promise. It is now possible to use $.ready.promise or $.when( $.ready ) to get the ready promise. Costs *1* byte min/gzipped. Unit test added. 2012-05-06 01:05:03 +02:00
Mike Sherov
714b8ffd2b reduce complexity of ready further, and try manipulating DOM to make sure we're really ready 2012-05-04 13:31:35 -04:00
Mike Sherov
f925c7a1c9 remove jQuery.quickReady, save bytes, style nits in tests 2012-05-04 10:17:30 -04:00
Mike Sherov
54fab3174c Fix #10067. Create jQuery.quickReady; closes gh-736.
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.
2012-04-23 15:44:27 -04:00
Timo Tijhof
df2a22ee61 Enforce 20s timeout for all unit tests. 2012-04-20 10:55:07 -04:00
Yehuda Katz
6bc08c2b2f Remove Ajax requirement for simple XML tests
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)
2012-04-15 17:41:54 -04:00
Dave Methvin
8d94ed91e4 Revert "No more php/js logic duplication..." on a hunch.
TestSwarm hasn't been happy since this commit, and everyone deserves to be happy.

This reverts commit 318d47b730.
2012-03-07 15:31:35 -05:00
jaubourg
ae138ac6d1 Makes sure start is always called with default context and no arguments. Should stop FF from acting up. Hopefully, this ugly patch can be removed in the future. 2012-03-07 18:23:46 +01:00
jaubourg
d3fad51cad Fixes #11264 or rather seriously limits the risk of global ajaxSettings screwing with script loading in domManip. Gotta love globals and sneaky dependencies. Unit test added. 2012-03-07 16:54:05 +01:00
jaubourg
484cea1b56 Fixes #11426: getting the responseText of an xhr should be tried/caught because of IE's inability to give access to binary data. Unit test added. 2012-03-07 15:39:39 +01:00
jaubourg
014b2a5700 Not testing his code properly makes Julian a silly coder. 2012-03-07 11:58:18 +01:00
jaubourg
318d47b730 No more php/js logic duplication. Ensures modules are still loaded separately when using "file:" protocol (makes debugging much easier, /kiss @rwaldron). Ensures test iframes will use the same jquery as specified in the main document. Known issue: chrome will cringe at cross-frame access using file: protocol, apparently chrome sees this as cross-domain... go figure. 2012-03-07 09:54:52 +01:00
Mike Sherov
5cae50e66e Fix #3838, $(document).height() incorrect in IE6
May still be broken in Netscape Navigator 4.
2012-03-02 11:45:30 -05:00
Mike Sherov
a52391aa1d Fix #7986. $.support.boxModel shan't be fooled by page-level CSS. 2012-02-24 00:14:15 -05:00
Mike Sherov
f36568324d fixes #10693, generalizes the "test something in an iframe" code when a callback isn't needed 2012-02-23 22:55:20 -05:00
Mike Sherov
7226cf2800 fixes #10901, PHP required for unit tests, but still allow the tests to run 2012-02-16 23:17:57 -05:00
Rick Waldron
0944be058e Fix #11257. Correct path to source files. 2012-01-30 22:38:37 -05:00
Richard Gibson
6c8dd7e7d3 Fix #10931: Make unit tests work without web access.
Applies https://github.com/gibson042/jquery/tree/10931 to
  dd900460ac
2012-01-12 20:04:17 -05:00
Mike Sherov
dd900460ac Fix #10902. DRY up the ways to include src files in tests. 2012-01-11 21:35:13 -05:00
timmywil
3d6237ef8a Remove the invisible body in support; Add temporary tests to verify correct support completions for upcoming support changes. 2011-11-17 14:48:27 -05:00
timmywil
7c2d6c8cd8 Fix error in test suite from testElementCrash.html; did not have callbacks.js 2011-11-16 11:39:34 -05:00
Mike Sherov
f35ba5e699 Fix #10691. Remove all instances of equals() and same(), as these are deprecated in QUnit. 2011-11-06 15:27:42 -05:00
timmywil
006fde228d Pass iframe support tests at doc ready. Fixes support fail in FF7 2011-10-31 18:24:34 -04:00
timmywil
38f087b5ae Add a way to fire native events using dispatchEvent/fireEvent in testinit.js; fixes failing click test in FF3.6 2011-10-28 14:17:14 -04:00
timmywil
f3a4d261ec Landing pull request 550. IE6,7,8 cannot use cached fragments from unknown elems. Fixes #10501.
More Details:
- https://github.com/jquery/jquery/pull/550
- http://bugs.jquery.com/ticket/10501
2011-10-23 16:08:10 -04:00
timmywil
7bef99e94d Run ajax tests in swarm 2011-10-13 12:07:54 -04:00
timmywil
8723f3b9e1 Update sizzle; Add sizzle cache collision iframe test. Fixes #8539. 2011-10-13 11:11:41 -04:00
jrburke
bba3d610c7 Landing pull request 331. Add support for registering jQuery as an AMD module. Fixes #7102.
More Details:
 - https://github.com/jquery/jquery/pull/331
 - http://bugs.jquery.com/ticket/7102
2011-09-19 16:37:22 -04:00
timmywil
25205d3f90 Removing topic.js as it will be a plugin 2011-09-19 15:42:30 -04:00
jaubourg
4092e3d275 $.Callbacks, $.Topic and notify/progress on $.Deferred. 2011-09-19 15:42:30 -04:00
timmywil
92405d4f5f Override Sizzle attribute retrieval with jQuery.attr. Fixes #5637, #7128, #9261, #9570, #10178.
Bug fixed on the side: $(window).is('a') was throwing an exception. Fixes #10178.
2011-09-19 15:42:30 -04:00
timmywil
2a045f8269 Revert "Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385"
This reverts commit dd93d0eb32.
2011-08-26 10:10:35 -04:00
timmywil
e2187f4963 Revert "Updated version numbers; Fixes #9385"
This reverts commit 09fe3ea265.
2011-08-26 10:10:21 -04:00
timmywil
e18cad6f88 Add test page for crashing IE8 when the testElement in support has a background (will run from the test suite). Supplements #9823. 2011-08-04 18:56:49 -04:00
Dave Methvin
8d5c874227 Merge pull request #416 from gnarf37/ticket_6652
CSS: Remove filter from style when setting opacity to 1 - Fixes #6652 - R
2011-08-04 15:09:31 -07:00
Dave Methvin
5417a2cf6b Merge pull request #417 from rwldrn/9385
Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385
2011-08-04 14:31:56 -07:00
jaubourg
0ed99097bd Fixes #9854: propagates native statusText onto jqXHR.statusText. statusText in callbacks is still normalized. Unit test added. 2011-07-23 02:39:12 +02:00
Corey Frang
5b0c3060f0 Unit test for #6652 2011-07-13 22:54:25 -05:00
Krinkle
28b470d7d3 Landing pull request 433. Fix testswarm test cases. Fixes #9555.
More Details:
 - https://github.com/jquery/jquery/pull/433
 - http://bugs.jquery.com/ticket/9555
2011-07-12 17:12:07 -04:00
rwldrn
09fe3ea265 Updated version numbers; Fixes #9385 2011-06-23 08:46:26 -04:00
rwldrn
dd93d0eb32 Begrudgingly adds chrome detection to jQuery.browser (1.7). Fixes #9385 2011-06-20 09:57:26 -04:00
timmywil
641ad80211 Attribute hooks do not need to be attached in XML docs. Fixes #9568. 2011-06-13 10:02:13 -04:00
timmywil
db437be6e3 Check classes passed for duplicates. Fixes #9499. 2011-06-07 21:00:44 -04:00
timmywil
a5396bde70 Attach background data to divs as well 2011-05-25 14:01:33 -04:00
timmywil
e5457a5a1f Remove unnecessary background setting in support now that we have the div reversion. Test added. 2011-05-25 13:58:05 -04:00
jaubourg
0f81cf8991 Adds iframe code for #9239. 2011-05-13 17:50:57 +02:00
jaubourg
38de389a8e Adds unit/support.js to unit tests. Still have to test for #8763 has to be done in its own file however, since Firefox refuses to notify global errors in the iframe (attachEvent, window.onerror and script.onerror all fail). 2011-05-10 12:24:36 +02:00
timmywil
ea24cd106b Avoid changing html in two places; add minified jQuery as an option to the main test page 2011-05-02 17:53:55 -04:00
timmywil
b8a9c2ba34 Syntax in testrunner 2011-04-28 16:31:51 -04:00
Rick Waldron
ebac797ac2 Landing pull request 354. Adds QUnit Aliases to testrunner.js. Fixes #8991.
More Details:
 - https://github.com/jquery/jquery/pull/354
 - http://bugs.jquery.com/ticket/8991
2011-04-28 15:28:01 -04:00
jrburke
0b1c2e642a Add support for registering jQuery as an AMD module. Only does so if the AMD loader indicates it has special allowances for multiple versions of jQuery being loaded in a page. 2011-04-16 20:35:18 -07:00
jeresig
1dda994c46 Merge branch '8099' of https://github.com/rwldrn/jquery. Fixes #8099.
Conflicts:
	test/data/testsuite.css
2011-04-14 15:57:47 -04:00
rwldrn
a76decc476 Ticket #8099 Performance tweaking, credits 2011-04-13 15:43:15 -04:00
timmywil
69866fd2e5 VML.type test was causing multiple test suite fails, fix attributes.js fail in IE6 where the val(String/Number) tests were interfering with the val(Function) tests 2011-04-12 19:32:18 -04:00
rwldrn
7164615f67 Ticket 8099, Reattempt with iframe 2011-04-12 11:48:07 -04:00
jeresig
312df0441b Revert "QUnit test for overriding important css declarations, references #4427"
This reverts commit 1299e89dcd.

Conflicts:

	test/unit/css.js
2011-04-12 00:54:12 -04:00
jeresig
430d9e0b06 Merge branch 'fix_8403' of https://github.com/lrbabe/jquery into lrbabe-fix_8403 2011-04-12 00:35:51 -04:00
Azatoth
1299e89dcd QUnit test for overriding important css declarations, references #4427 2011-04-12 00:17:07 -04:00
Dave Methvin
14193e449e Create jQuery.holdReady(true/false) method to encapsulate jQuery.readyWait++ / jQuery.ready(true) logic. Fix problem where jQuery.ready may trigger twice, causing the (unsupported) document.onready to run twice. Fixes #8803 . 2011-04-07 11:26:42 -04:00
timmywil
f9cc5597a4 Fix test cases for bug #8316 fix.
- Removed special page, just needed another test in the fixed offset tests

- Checks it's position related to scrolling
2011-03-31 02:55:16 -04:00
jeresig
7b985c4ca0 Oops, that test file for bug #8316 was needed - was also missing an include and was causing errors. 2011-03-24 19:52:45 -04:00
louisremi
c6b891fb1c Adding unit tests for #8403 2011-03-07 14:43:08 +01:00
jaubourg
2d0bc7ce72 Moves Deferred-related code into a separate module. Context handling has been simplified in _Deferred.resolve and jQuery.when has been refactored for clarity (and minor optimization). 2011-03-03 19:38:06 +01:00
jaubourg
5b38439011 Fixes #8297. Makes sure response headers with empty values are handled properly and do not prevent proper parsing of the entire response headers string. Unit test amended. 2011-02-17 17:03:09 +01:00
Anton M
faa6fe32f7 Revert "Merge branch '8099' of https://github.com/rwldrn/jquery into rwldrn-8099"
This reverts commit bb9408516a, reversing
changes made to 3ad8dd242a.

Conflicts:

	src/effects.js
2011-02-15 22:30:34 +01:00
jeresig
bb9408516a Merge branch '8099' of https://github.com/rwldrn/jquery into rwldrn-8099 2011-02-14 12:36:49 -05:00
jeresig
3ad8dd242a Merge branch 'fix8033' of https://github.com/SlexAxton/jquery into SlexAxton-fix8033 2011-02-14 12:35:27 -05:00
Anton M
fbf79c0b49 Remove old cruft from test folder. Change "polluted" test suite loader to use CDN hosted libraries. 2011-02-13 01:34:31 +01:00
jrburke
d99268a4b7 Add readyWait tests. Fixes #8145.
Adds tests for the fix to #6781.
2011-02-12 13:53:05 +01:00
Anton M
08fcde6a59 Remove an invalid ajax test and some code that is no longer used by any test. 2011-02-05 00:20:23 +01:00
rwldrn
0d2e4796dc Bug #8099 - Always restore to correct display value based on element's expected default display 2011-01-31 14:31:15 -05:00
jaubourg
e0b1bb8e3d Script dataType now supports ecmascript mimetypes. 2011-01-31 19:14:06 +01:00
Alex Sexton
c50b74372c Moved jQuery global leak to end of file so accidental gEBCN overrides in prototype don't get caught up in confusion. Fixed tests to reference jQuery variable instead of $ (best practice). Fixes #8033 2011-01-23 21:19:33 -06:00
Colin Snover
e78d3a7e2d Merge in data_nocollide branch. Fixes #6968, improves unit testing framework checks for leaky stuff. 2011-01-17 15:31:43 -06:00
jaubourg
0c51e9d55f Fixes #4897. Added ?? as a context-insensitive placeholder for the callback name of a JSONP request. Unit tests provided. 2011-01-12 18:36:00 +01:00
Colin Snover
e2941d5a98 Update unit tests with a leak detection mechanism for the various jQuery globals and fix all leaks in the tests. 2011-01-09 15:58:47 -06:00
jaubourg
d515068ee8 Fixes #7868. ResponseText is now properly propagated for error callbacks. 2011-01-09 04:53:29 +01:00
jaubourg
69497c3fd7 Fixes #7881. Setting contentType to false will prevent the Content-Type header from being sent. Unit test added. 2011-01-09 04:28:42 +01:00
wycats
ae6655bcb6 Revert "Register as a CommonJS async module if in that kind of environment. Fixes #7102."
This reverts commit 6ffa730721.

Conflicts:

	src/core.js
2011-01-05 13:26:05 -08:00
Colin Snover
3e0cc81504 Clean trailing whitespace from all files. 2010-12-30 00:34:48 -06:00
jrburke
6ffa730721 Register as a CommonJS async module if in that kind of environment. Fixes #7102. 2010-12-27 13:03:27 -06:00
jaubourg
974637d639 Simplified headers tests: removed multiline headers (support is far too servers & browsers dependant) and made all the tests in a single request. 2010-12-11 02:41:39 +01:00
jaubourg
0b0889ceaa Tweaked the headers test to be apache independent and actually work. 2010-12-11 02:21:54 +01:00
jaubourg
9b9d270e3d Removed non-standard (and not that useful) xhr emulation methods & reworked the headers test as a consequence. 2010-12-10 02:45:08 +01:00