Anton M
4b91b918a3
Fix a some inaccuracies in the original test case for #7912 .
...
- Use fresh div instead of one outside the test-fixture
- make sure the empty string test tests actually that (not 0% 0%)
- actually test for < -10000 (#7193 )
- fixed some whitespace issues
2011-02-17 19:14:46 +01:00
louisremi
85d9343271
Fixes #7912 . Make sure .cur() only returns 0 as fallback value when it needs to ("", auto, undefined, null).
...
This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by
.css() if it isn't a number, number-alike or a value that needs a fallback to 0.
This way fx.start doesn't need to be recalculated for complex values.
2011-02-17 17:26:23 +01:00
Dave Methvin
b9f5e2b974
Only perpetrate the .toJSON hack on data caches when they are attached to a plain Javascript object. Part of the continuing saga of #8108 .
2011-02-17 17:09:56 +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
Anton M
6b08d88d04
Fix some whitespace issues.
2011-02-15 22:09:09 +01:00
Dave Methvin
12c0e1a692
Fixes #7922 . Copy the donor event when simulating a bubbling submit in IE so that we don't accidentally stop propagation on it. Remove a bunch of return statements that could also cancel the event. DRY out the liveFired change from #6359 by moving it to the trigger() function.
2011-02-15 22:08:39 +01:00
jaubourg
1ddfdabbb9
Fixes #8277 . Sets data to undefined rather than null when it is not provided in ajax helpers so that it won't revent data set in ajaxSettings from being used. Unit test added.
2011-02-15 21:53:38 +01:00
Anton M
8e40a84c24
Fix some unscoped tests which failed after recent changes to QUnit.
2011-02-15 21:03:34 +01:00
Colin Snover
2cc03a86fc
Update jQuery.data to use jQuery.noop for toJSON hack instead of an additional superfluous function.
2011-02-14 16:30:18 -06:00
Colin Snover
2ed81708bd
Hide metadata when serializing JS objects using JSON.stringify via a toJSON hack. Fixes #8108 .
2011-02-14 16:22:23 -06:00
Anton M
217a9919c3
Add missing semicolon.
2011-02-14 22:38:19 +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
659773348f
Fix breaking test in Chrome.
2011-02-14 00:37:07 +01:00
Anton M
c5edf982d5
Don't add "px" to unit-less properties when animating them. Fixes #4966 .
2011-02-13 23:17:58 +01:00
Anton M
dba8c20b4b
Clean up whitespace in test/unit/effects.js
2011-02-13 23:17:35 +01:00
Anton M
3930afa3ad
Follow up to fbf79c0b49
.
...
Fix stupid error.
2011-02-13 01:48:48 +01: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
awgy
2862f589db
Remove sed from post-build code, due to portability issues between GNU and BSD versions.
...
Follow up to ba43d37394
which apparently
didn't fix the problem completly on Mac OS X.
2011-02-12 13:53:04 +01:00
David Murdoch
3548ffaee2
Remove unnecessary "script.type = text/javascript;". Fixes #8198 .
...
Follow up to 462bb1f66a
.
2011-02-12 13:53:03 +01:00
David Murdoch
f099907672
Unexpose $.support._scriptEval as it's not needed. Use a private var instead. Fixes #8200 .
2011-02-12 13:53:02 +01:00
jaubourg
d4790116b8
Enhances ajaxSetup so that it can take an optional target option, in which case target will be updated instead of ajaxSettings. That way, fields that shouldn't be deep extended can be listed and dealt with in one place. jQuery.ajax now makes use of ajaxSetup with target to create its internal settings object. Fixes #7531 in IE9RC.
2011-02-12 03:59:46 +01:00
jaubourg
081562cebc
Pulls out the callback function in setRequestHeader. Also renames the regexp so that what it's meant to do is a bit more obvious.
2011-02-12 01:08:24 +01:00
jaubourg
ea3e10a492
Minor changes to enforce JQuery Core Style Guidelines.
2011-02-12 00:14:11 +01:00
Anton M
481d940e79
Remove duplicate test.
2011-02-11 11:59:42 +01:00
jaubourg
066304edf0
Adds missing crossDomain test.
2011-02-11 07:39:46 +01:00
jaubourg
f2e0ae1a39
Fixes #8245 . Ajax now ensures header names are capitalized so that non-compliant xhr implementations don't override them.
2011-02-11 07:07:06 +01:00
jaubourg
3a1d7a3c7c
Simplifies status normalization in xhr transport. Local file test modified for clarity.
2011-02-11 07:02:11 +01:00
rwldrn
43a41ba7ec
Make sure .val() works after form.reset() in IE. Fixes #2551 .
2011-02-10 23:50:02 +01:00
Anton M
78fc79fad4
Make sure .clone(true) correctly clones namespaced events. Fixes #4537 .
2011-02-10 22:20:48 +01:00
Anton M
4490f4285c
Fix some whitespace issues. Improve and correct an events test.
2011-02-10 22:20:47 +01:00
John Resig
3f036281dd
No need to duplicate Sizzle tests, just run them directly from Sizzle.
2011-02-10 16:19:35 -05:00
Anton M
f56b4a22a6
Pull over tests from Sizzle. "Remove backslashes from tag name filter. Fixes #8220."
2011-02-10 01:29:18 +01:00
jaubourg
6f4b36ed17
Replaces jQuery.each loop for headers with a foreach loop.
2011-02-09 17:50:45 +01:00
jaubourg
f6e173437e
Fixes #8219 . Introduces the mimeType option to override content-type header in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option). Unit test added.
2011-02-09 17:47:33 +01:00
jaubourg
806d9ce811
Makes local filesystem test for ajax more insightful.
2011-02-09 15:27:50 +01:00
jaubourg
2953d0481a
Makes sure statusText always defaults to "error".
2011-02-09 15:26:34 +01:00
Colin Snover
d92dc2902c
Revert portions of 7acb141ed7
that attempt to use a function to hide jQuery metadata from JSON.stringify since this does not work reliably cross-browser (fails in Fx3.5, O11, Saf4).
2011-02-08 12:13:27 -06:00
Anton M
b46dff39c3
Make sure that mousing over Chrome "internal div" doesn't trigger a mouseleave. Fixes #8209 .
...
Follow up to 4a828c93d4
which was stupid and got reversed.
2011-02-08 17:15:55 +01:00
Anton M
944e0e6498
Revert "Make sure that mousing over Chrome "internal div" elements results in no trigger of a mouseleave."
...
This reverts commit 4a828c93d4
.
2011-02-08 17:08:25 +01:00
Anton M
4a828c93d4
Make sure that mousing over Chrome "internal div" elements results in no trigger of a mouseleave. Fixes #8209 .
2011-02-08 16:57:06 +01:00
Colin Snover
534dbd660e
Update jQuery.support.noCloneEvent test to function properly in IE9. Fixes #8052 . 1.5-stable
2011-02-07 10:56:48 -06:00
Colin Snover
8805f1373d
Merge branch 'master' of github.com:jquery/jquery into jquery-master
2011-02-07 10:52:33 -06:00
Colin Snover
7acb141ed7
Update $.data to use a function instead of an object when attaching to JS objects in order to hide attached metadata from JSON.stringify. Remove event.js code that was doing this before specifically for events, which is now redundant. Fixes #8108 . 1.5-stable
2011-02-07 10:48:38 -06:00
jaubourg
5b421fed00
Adds jQuery collection to objects that will be used as global events context if provided in the ajax options.
2011-02-07 17:09:47 +01:00
jaubourg
a2dbdc1f54
Fixes a bug that prevented headers from being set in an ajaxSend callback. Unit test modified.
2011-02-07 16:35:32 +01:00
jaubourg
0c21c83e96
Makes sure xhrs are actually aborted on unload in IE. Simplifies active xhrs caching in the process.
2011-02-07 06:11:52 +01:00
jaubourg
d6fbbe1080
Fixes #8177 . XHR transport now considers 304 Not Modified responses as 200 OK if no conditional request header was provided (as per the XMLHttpRequest specification).
2011-02-05 03:08:35 +01:00