Michał Gołębiowski
4b39a82890
Fix #14340 . Remove remnants of oldIE from unit tests. Close gh-1425.
2013-11-11 00:43:27 +01:00
Timmy Willison
0fa52c11cb
Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755 .
2013-04-09 11:59:31 -04:00
Michał Gołębiowski
dca7681284
Improve CSS and Support:
comments. Close gh-1220.
...
1) corrected box-sizing rules order - the unprefixed value should always be the last one
2) removed last semi-colons in CSS rules
3) updated support comments
code review changes + more consistent comment spacing
2013-04-06 17:09:52 -04:00
Dave Methvin
e29619031b
Know when to hold em, know when to fold em.
2012-12-22 16:55:10 -05:00
Timo Tijhof
55313d32a2
Test: Update index.html to new QUnit format. Close gh-1061.
...
Depends on jquery/sizzle#177 , included with the Sizzle submodule in this commit.
2012-12-10 21:48:20 -05:00
Richard Gibson
81b094b2c1
No ticket: update test suite to pass QUnit globals check in most environments. Close gh-1016.
2012-11-05 17:24:03 -05:00
David Fox
8121309694
Fixes #12139 , make sure absolutely positioned elements have HTML as offsetParent, closes gh-1010
2012-10-26 12:40:57 -04:00
Daniel Gálvez
b398a68333
Fix #11542 . document.body should not be special in .offset() and document.documentElement is the default element.offsetParent. Close gh-899.
2012-10-24 23:35:15 -04:00
Mike Sherov
fad0e22181
fix failing offset tests
2012-10-17 14:52:16 -04:00
Merrifield, Jay
425272aea1
Fixes #12749 , correctly detect position() for position:fixed elements, closes gh-991
2012-10-17 13:41:49 -04:00
Mike Sherov
ed9e34482a
enforce double quotes via JSHint. Closes gh-975
2012-10-16 10:17:14 -04:00
Dave Methvin
b0a352bfa7
Fix #12534 . Don't die on browsers lacking getBoundingClientRect.
2012-09-13 18:47:07 -04:00
Dave Methvin
3478cbb4d4
Remove IE8 testswarm hacks for offset.
2012-07-25 15:42:53 -04:00
Dave Methvin
335bdf2b1a
Remove a few stray spaces in unit tests.
2012-07-10 21:44:03 -04:00
Uri Gilad
21b0db7993
Fix #11962 . Standardize getter return values for empty sets.
2012-07-09 23:06:51 -04:00
Nowres Rafid
aaf134bb70
Fix #8482 , offsetParent should not return null. Closes gh-847.
2012-07-06 10:01:32 -04:00
Chad Killingsworth
de9bed319e
Make unit tests friendly to Closure Compiler. Closes gh-845.
...
Conflicts:
test/unit/effects.js
test/unit/offset.js
2012-07-05 15:52:42 -04:00
Dave Methvin
703f274ad4
Ever notice that static and problematic rhyme?
2012-07-03 22:54:59 -04:00
Dave Methvin
5c60e334d3
Avoid running problematic static offset tests in IE8 on the swarm.
2012-07-03 22:17:37 -04:00
Rick Waldron
7ff3da186c
Unit tests are linted and passing.
2012-06-21 15:30:24 -04:00
Dave Methvin
c18f1f119e
Detect IE collapsing body margin directly rather than inferring it.
2012-06-18 16:02:26 -04:00
Dave Methvin
90a6a493e4
Browser sniffing is *bad*, folks, even in unit tests.
2012-06-18 13:52:05 -04:00
Mike Sherov
c68ab270fa
Modularize offset (exclude w/ grunt build:*:*:-offset). Closes #813 . Fixes #11865
2012-06-07 11:24:35 -04:00
Rick Waldron
e680f36ca0
Fix busted tests that relied on width in 2nd param to jQuery(), dimensions stays modular. (core, attributes, offset)
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-06-05 16:38:18 -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
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
Richard Gibson
6c2a501de4
Fix #5571 . Setters should treat undefined
as a no-op and be chainable.
2011-12-06 15:25:38 -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
3661835101
Fixes IE7 test suite. Keep the testElement attached and set necessary styles on it to fix the offset with margin test.
2011-09-28 11:30:38 -04:00
Rick Waldron
f60213648c
Landing pull request 477. 1.7 jQuery.offset.supportsFixedPosition. Fixes #6809 .
...
More Details:
- https://github.com/jquery/jquery/pull/477
- http://bugs.jquery.com/ticket/6809
2011-09-19 21:03:41 -04:00
timmywil
5209dd75a0
Set back the offset test name to fix offset tests; iframe retrieval is based on test names
2011-08-17 16:08:44 -04:00
Rick Waldron
06c41e09bd
Renames duplicate named test block. Fixes #9912
2011-07-26 11:52:01 -04:00
John Resig
f1d75edec7
Merge branch 'bug_7931' of https://github.com/Xavi-/jquery into Xavi--bug_7931
...
Conflicts:
src/offset.js
2011-04-12 16:13:56 -04:00
louisremi
a5604aedb7
merge with master and resolve more conflicts
2011-04-12 11:29:25 +02:00
louisremi
f42010b657
third batch
2011-04-12 10:47:46 +02:00
jeresig
0d755dff13
Merge branch 'master' of https://github.com/inukshuk/jquery into inukshuk-master
...
Conflicts:
test/unit/offset.js
2011-04-12 00:25:36 -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
Michael Murray
e8f4629b92
Offset setter for fixed position elements in Webkit. Fixes #8316 .
2011-03-24 19:02:38 -04:00
Xavi
0942b3b3f5
Merge branch 'master' of git://github.com/jquery/jquery into bug_7931
2011-01-18 12:06:05 -05:00
Sylvester Keil
75655e5758
Use parseFloat instead of parseInt to read CSS values.
...
This fixes #7730 and #7885 .
2011-01-15 13:56:20 +01:00
Xavi
bed64e65cc
Bug 7931; Added unit tests for scrollTop/Left.
2011-01-09 20:39:23 -05:00
Xavi
8d28f41f66
Bug 7931; Replaced with and
2011-01-09 20:34:15 -05:00
Xavi
d03d2e9f26
Bug 7931; Fixed bug that caused scrollTop and scrollLeft setters to return null when called on an empty jquery object
2011-01-09 19:11:05 -05: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
Colin Snover
3e0cc81504
Clean trailing whitespace from all files.
2010-12-30 00:34:48 -06:00
John Resig
cf672a2e7a
Make sure that .offset() doesn't fail against disconnected DOM nodes. Fixes #4996 .
2010-09-28 10:55:48 -04:00
Brandon Aaron
d6f03aa0df
Merge branch 'master' of github.com:jquery/jquery
2010-03-27 18:58:55 -05:00
jeresig
dab1d74677
Mobile WebKit browsers don't support accessing the scroll position of the document/window.
2010-03-25 17:30:13 -04:00
Brandon Aaron
656fe92178
Fixed an issue with setting offset of absolutely positioned element that has no position values ("auto"). Fixes #5781 .
2010-03-22 20:11:37 -04:00
Brandon Aaron
1844f95c5b
Added unit tests for setting offset one property at a time and added radix to parseInt calls
2010-03-22 18:50:17 -04:00