aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/core.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Unit tests are linted and passing.Rick Waldron2012-06-211-30/+41
|
* Restore rhtmlString to its original form. 1.9 will come with starts-with ↵timmywil2012-06-211-5/+5
| | | | html matching. For now, we are warning against broad use of jQuery() to parse html.
* Revert "Adjust jQuery('html') detection to only match when html starts with ↵timmywil2012-06-211-1/+3
| | | | | | | | '<' (counting space characters). Fixes #11290" This reverts commit 239fc86b01d52fd9df6d1963027ed37b4f6251fc. The consensus is that this would change behavior too abruptly. We will warn in 1.8 and do this in 1.9.
* Adjust jQuery('html') detection to only match when html starts with '<' ↵timmywil2012-06-201-3/+1
| | | | (counting space characters). Fixes #11290
* When detecting html in init, ignore html characters within quotes, brackets, ↵timmywil2012-06-191-1/+6
| | | | and parens as well as escaped characters which are valid in selectors. Fixes #11290.
* Some work to modularize ajax later on.jaubourg2012-06-111-17/+17
|
* Fix #11857. Modularize css.js, add dependency management. Closes gh-816.Mike Sherov2012-06-101-4/+11
| | | | See the pull request for more info on the dependency management details.
* Modularize offset (exclude w/ grunt build:*:*:-offset). Closes #813. Fixes ↵Mike Sherov2012-06-071-32/+38
| | | | #11865
* Fix busted tests that relied on width in 2nd param to jQuery(), dimensions ↵Rick Waldron2012-06-051-11/+25
| | | | | | stays modular. (core, attributes, offset) Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fix indentation in /speed and /test dirs, closes gh-780.Trey Hunner2012-05-181-52/+52
|
* Fix some stragglersYehuda Katz2012-04-151-2/+1
|
* Remove Ajax requirement for simple XML testsYehuda Katz2012-04-151-21/+13
| | | | | | | | | | | | 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 parseXML act like parseJSON when given an empty or non-string input: ↵jaubourg2012-03-071-1/+13
| | | | now returns null rather than throwing an exception. Incidently fixes #10527. Unit tests added.
* fixes #10901, PHP required for unit tests, but still allow the tests to runMike Sherov2012-02-161-0/+6
|
* Refine the jQuery.isWindow check.RafaC3ABl Blais Masson2011-12-061-3/+3
|
* Landing pull request 586. Create exports.js for exporting jQuery to window ↵jrburke2011-11-141-7/+1
| | | | | | | | and AMD. Fixes #10687. More Details: - https://github.com/jquery/jquery/pull/586 - http://bugs.jquery.com/ticket/10687
* Fix #10646. Throw an Error object from `.error()` for IE's sake.Dave Methvin2011-11-071-1/+1
|
* Fix #10690. Make sure `.isNumeric()` can't get a `Date`.Dave Methvin2011-11-071-3/+15
| | | | Also add tests for custom objects with a `.toString()` method.
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-233/+233
| | | | deprecated in QUnit.
* Fix #10478. Replace jQuery.isNaN with jQuery.isNumeric.Dave Methvin2011-10-111-0/+40
| | | | Thanks to Christian C. Salvadó for the unit tests!
* Landing pull request 331. Add support for registering jQuery as an AMD ↵jrburke2011-09-191-0/+6
|\ | | | | | | | | | | | | | | 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/+7
| | | | | | | | loader indicates it has special allowances for multiple versions of jQuery being loaded in a page.
* | Allow second argument to be passed to array.indexOf. Fixes #9453.timmywil2011-09-191-0/+36
| |
* | Merge pull request #445 from rwldrn/9897Dave Methvin2011-08-251-1/+8
|\ \ | | | | | | Fixes #9897. Wrap obj.constructor test in try/catch to avoid problems with host objects. Thanks to bkrausz.
| * | Wrap obj.constructor test in try/catch. Thanks to bkrausz. Fixes #9897Rick Waldron2011-07-251-1/+8
| | |
* | | Merge pull request #465 from anton-ryzhov/masterDave Methvin2011-08-251-0/+10
|\ \ \ | | | | | | | | Fixes #10076. $.inArray crashes IE6 and Chrome if second argument is `null` or `undefined` (Thanks anton-ryzhov!)
| * | | Unit test for this caseAnton Ryzhov2011-08-171-0/+10
| |/ / | | | | | | | | | Codestyle fixes
* | | Prioritize #id over <tag> to avoid XSS via location.hash (#9521)Dave Methvin2011-08-231-0/+18
| | |
* | | Landing pull request 463. Fixes #9572. Don't camelize the `-ms-` prefix ↵dmethvin2011-08-171-2/+7
|/ / | | | | | | | | | | | | | | because Microsoft didn't. A Fixes #9572. More Details: - https://github.com/jquery/jquery/pull/463 - http://bugs.jquery.com/ticket/9572
* | Fixes #9255: xml parsing error in $.parseXML is now properly detected for ↵jaubourg2011-07-231-2/+22
| | | | | | | | all browsers. Unit test added.
* | Landing pull request 383. Relocating jQuery.camelCase to core; Fixes #9368.rwldrn2011-05-251-0/+14
| | | | | | | | | | | | More Details: - https://github.com/jquery/jquery/pull/383 - http://bugs.jquery.com/ticket/9368
* | Make sure that empty nodelists continue to map properly. Fixes #8993.John Resig2011-05-021-1/+7
| |
* | Change check for skipping the initial quickExpr RegExp check. Fixes #8984.John Resig2011-05-021-1/+12
| |
* | Remove unnecessary usage of Function.prototype.bind (#7783) but maintain ↵John Resig2011-04-171-1/+4
| | | | | | | | API. Also fix bug with proxy failing when a name is provided. Fixes #8893.
* | Switch QUnit div from depreceted #main to #qunit-fixturetimmywil2011-04-171-39/+39
|/
* merge with master and resolve more conflictslouisremi2011-04-121-1/+8
|\
| * Merge branch 'bug_4366' of https://github.com/jboesch/jquery into ↵jeresig2011-04-121-1/+8
| |\ | | | | | | | | | jboesch-bug_4366
| | * Bug 4366; fixing $.each(document.styleSheets) from throwing errors in IEJordan Boesch2011-03-301-1/+8
| | |
* | | second batchlouisremi2011-04-111-69/+69
|/ /
* | Merge branch 'proxy-native-bind' of https://github.com/gf3/jquery into ↵jeresig2011-04-101-3/+12
|\ \ | | | | | | | | | gf3-proxy-native-bind
| * | added: Backcompatibility with old proxy syntax.Gianni Chiappetta2011-01-211-1/+5
| | |
| * | Merge branch 'master' into proxy-native-bindGianni Chiappetta2011-01-211-24/+322
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (194 commits) Revert "Make sure that focusin/focusout bubbles in non-IE browsers." This was causing problems with the focusin event, see: #7340. Replaces "text in-between" technique with a full-fledged one-level transitive search for converters (unit tests added). Also cleans up auto dataType determination and adds converter checks in order to guess the best dataType possible. Moves determineResponse logic into main ajax callback. Puts responseXXX fields definitions into ajaxSettings. Removes misleading comment. Bring jQuery('#id') and jQuery('body') logic back into core (while leaving it in Sizzle at the same time). Was causing too much of a performance hit to leave it all to Sizzle. Renames Deferred's fire and fireReject methods as resolveWith and rejectWith respectively. Fix typo in regex tweak from previous commit. Renames determineDataType as determineResponse. Makes it more generic as a first step into integrating the logic into the main ajax done callback. Also fixes some comments in ajax/xhr.js. Move jQuery(...) selector speed-up logic into Sizzle(...) qSA handling. Additionally add in a new catch for Sizzle('.class') (avoid using qSA and use getElementsByClassName instead, where applicable). Revises the way arguments are handled in ajax. Makes sure statusCode callbacks are ordered in the same way success and error callbacks are. Unit tests added. Cleans up and simplifies code shared by ajaxPrefilter and ajaxTransport. Removes chainability of ajaxSetup, ajaxPrefilter and ajaxTransport. Also makes sure context is handled properly by ajaxSetup (unit test added). Rework unit tests to check actual result elements. Moves active counter test after all other ajax tests where it should be. Revised the Nokia support fallback. It turns out that Nokia supports the documentElement property but does not define document.compatMode. Adding this third fallback allows Nokia to run jQuery error-free and return proper values for window width and height. Moves things around to make jsLint happier. Fixes crossDomain test so that it assumes port to be 80 for http and 443 for https when it is not provided. Moves determineDataType into ajaxSettings so that it is accessible to transports without the need for a second argument and so that we can now pass the original options to the transport instead. Also ensures the original options are actually propagated to prefilters (they were not). Re-adds hastily removed variable and simplifies statusCode based callbacks handling. Use undefined instead of 0 to deference transport for clarity. ... Conflicts: src/event.js
| * | | Fixing $.proxy to work like (and use) Function.prototype.bind (ticket #7783)Gianni Chiappetta2010-12-141-3/+8
| | | | | | | | | | | | | | | | http://bugs.jquery.com/ticket/7783
* | | | Merge branch 'map-object.1.6' of https://github.com/danheberden/jquery into ↵jeresig2011-04-101-10/+10
|\ \ \ \ | | | | | | | | | | | | | | | danheberden-map-object.1.6
| * | | | Improve speed of $.map with object support (-5% previous speed) and improve ↵Dan Heberden2011-04-041-2/+2
| | | | | | | | | | | | | | | | | | | | .length detection
| * | | | jQuery.map to iterate over objects with a .length propertyDan Heberden2011-03-211-5/+7
| | | | |
| * | | | Merge branch 'bug_2616' of https://github.com/jboesch/jquery into map-object.1.6Dan Heberden2011-03-211-7/+5
| |\ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | * 'bug_2616' of https://github.com/jboesch/jquery: Bug 2616; Adding object support to jQuery.map
| | * | | Bug 2616; Adding object support to jQuery.mapJordan Boesch2011-02-271-7/+5
| | | | |
* | | | | Rewrite of globalEval. Uses window.execScript or window.eval with a trick to ↵jaubourg2011-04-071-0/+20
| | | | | | | | | | | | | | | | | | | | ensure proper context. Unit tests added.
* | | | | Skip id regex check when large html strings are passed to the jQuery ↵carpie2011-04-051-1/+14
| | | | | | | | | | | | | | | | | | | | constructor (#7990).