Commit Graph

2016 Commits

Author SHA1 Message Date
Oleg Gaidarenko
9953ae4c88 Build: Move test to appropriate module
Ref fbdbb6fd43
2014-06-16 03:21:58 +04:00
Oleg Gaidarenko
9dc29a2b13 Effects: Improve raf logic
* Make animation behave as if jQuery.fx.off = true if document is hidden

* Use cancelAnimationFrame in jQuery.fx.stop

Ref 708764f47b
2014-06-16 03:21:53 +04:00
Oleg Gaidarenko
06a4540696 Effects: Reintroduce use of requestAnimationFrame
Same as before, just use don't use prefixes, since they pretty match useless now
and use page visibility API to determine if animation should start.

Also null the requestAnimationFrame attribute in window for tests since
sinon does not provide fake method for it.

Fixes #15147
Ref 72119e0023
2014-06-16 03:21:48 +04:00
Oleg Gaidarenko
13040b655a Effects: Remove needless operations in tests
Ref 10024c2582
2014-06-16 03:21:44 +04:00
Oleg Gaidarenko
37f0f7f42c Ajax: Always use script injection in globalEval
Fixes #14757
Ref bbdfbb4ee8
2014-06-16 03:21:39 +04:00
Oleg Gaidarenko
76294e1e9e CSS: Do not throw on frame elements in FF
IE9-10 throws on elements created in popups (see #14150), FF meanwhile throws
on frame elements through "defaultView.getComputedStyle" (see #15098)

Use "defaultView" if in the popup which would fix IE issue,
use "window.getComputedStyle" which would fix FF issue.

And everybody wins, except performance, but who cares right?

Fixes #15098
Ref e488d985cf
2014-06-16 03:21:34 +04:00
Richard Gibson
d05f4bda1c Tests: Clean up isNumeric tests 2014-06-07 14:33:36 -04:00
Richard Gibson
b6e99eb43c Core: Work around loss of precision from parseFloat
Fixes #15100
2014-06-07 14:22:49 -04:00
TJ VanToll
479e37f436 Ajax: Support usage without jQuery.event
Fixes #15118
Closes gh-1588
2014-06-02 16:41:00 -04:00
Oleg Gaidarenko
369add5f1d Selector: Use jQuery reference not Sizzle
(Cherry-picked from 3b9057a18d)
2014-05-29 21:55:15 +04:00
Oleg Gaidarenko
9e5f49fde3 Selector: Fix test iframe submission for firefox
Ref jquery/sizzle@20fbadb087
(Cherry-picked from efc4f8d781)
2014-05-29 21:49:53 +04:00
Michał Gołębiowski
1bd576a3c4 Ajax, Manipulation: don't test cross-document manip in Android 2.3
(cherry-picked from 213b9604f3da654e4281eeea56fcb169f88ffd19)

Fixes #14796
Closes gh-1572
2014-05-07 23:22:24 +02:00
Michał Gołębiowski
6738117383 Core: Correct the number of expected tests
(cherry-picked from da148f158f)
2014-05-02 16:04:46 +02:00
Liang Peng
7cf9ceaebc Core: Remove repeated test
(cherry-picked from 69d4a48ff6)

Closes gh-1570
2014-05-02 15:50:31 +02:00
Dave Methvin
062a7d63e4 Data: Work around IE11 bug with onpageshow attribute
Fixes #14894
(cherry picked from commit b8133e282c)

Conflicts:
	src/data.js
	test/unit/data.js
2014-04-30 11:00:14 -04:00
Oleg Gaidarenko
f833c9af57 Effects: Respect display value on inline elements
Take "olddisplay" value into the account

Fixes #14824
Closes gh-1566
Ref 73fe17299a

(cherry-picked from c34dbf5a8d)
Conflicts:
	src/effects.js
2014-04-30 17:14:22 +04:00
Michał Gołębiowski
e848b46cfc Css: Use only positive integers as values for widows/orphans
According to http://www.w3.org/TR/CSS2/page.html#propdef-orphans, widows
and orphans can take only positive integer values. Together with a Chrome 34
regression this caused the test to fail.

(cherry-picked from def4841cfa)

Fixes #15016
Closes gh-1563
2014-04-18 16:24:18 +02:00
Oleg Gaidarenko
3dc5504237 Tests: Comply the style guide 2014-04-15 17:46:26 +04:00
Oleg Gaidarenko
d89c278a33 Tests: Fix failing ajax tests in oldIE 2014-04-15 17:46:26 +04:00
Oleg Gaidarenko
4d5596e3e4 Tests: Remove unused variables 2014-04-15 17:46:26 +04:00
Oleg Gaidarenko
0837e41509 Tests: Copy some Sizzle combinators tests 2014-04-15 17:46:26 +04:00
Oleg Gaidarenko
a4e83764f4 Tests: Add more tests for Sizzle attributes 2014-04-15 17:46:26 +04:00
Oleg Gaidarenko
510c002ff7 Tests: Add test for selectors with commas 2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
1c596165bc Tests: Copy Sizzle.uniqueSort tests 2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
10d92e3dce Tests: Copy Sizzle.contains tests 2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
6e4f75fea7 Tests: Move some of the Sizzle tests to selector 2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
1c04178939 Tests: Improve jsonp tests
Since global variable for callback always would be equal to undefined value
it better to check for boolean instead
2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
9cdaa75b86 Tests: Correct logic of a broken assertion 2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
f5ea571753 Build: Use jscs to check test helpers
Also fix issues found by jscs

Conflicts:
	test/data/testrunner.js
2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
6cd81b8802 Tests: Remove Sizzle intergration tests
Fixes #14818

Conflicts:
	test/data/testrunner.js
2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
d5399193d4 Tests: Simplify "testTimeout" option 2014-04-15 17:46:25 +04:00
Oleg Gaidarenko
270a1ebd8d Tests: Remove QUnit start hook
Conflicts:
	test/data/testrunner.js
2014-04-15 17:46:25 +04:00
Michał Gołębiowski
6b87914758 Support: Add Android support tests results 2014-03-31 23:07:24 +02:00
Michał Gołębiowski
10d7d5ce9d Css: change boxSizingReliable in IE<9.
Change boxSizingReliable test value to false in all IE versions.
Modify support comments to argument getComputedStyle guards
with oldIE support and not node.js which is not supported in 1.x.

Closes gh-1498
2014-03-21 08:30:41 -04:00
Richard Gibson
80cf965e02 Effects: Don't overwrite display:none when .hide()ing hidden elements
Fixes #14848
Closes gh-1548
(cherry picked from commit 890d441aa5)

Conflicts:
	src/effects.js
2014-03-20 23:01:39 -04:00
Oleg Gaidarenko
6dcca6da36 CSS: jQuery#hide should always save display value
Fixes #14750
Closes gh-1509
(cherry picked from commit 5a8f769332)

Conflicts:
	src/css.js
2014-03-20 22:47:35 -04:00
John Hoven
9ec429cf62 Attributes: Trim whitespace from option text when returned as a value
Fixes #14858
Ref #14686
Closes gh-1531
2014-03-20 15:44:09 -04:00
Michał Gołębiowski
c10af6be17 Core: Change the sleep time in dont_return.php from 100s to 30s
Half a minute is more than enough for the test to finish even in the slowest
browsers and in case of starving the PHP FPM process pool, one has to wait
for only half a minute to try again.

(cherry-picked from a10aa3aac5)
2014-03-19 02:29:38 +01:00
Michał Gołębiowski
7326c0467e Event: Don't test stopImmediatePropagation in Android 2.3
Android 2.3 doesn't support stopImmediatePropagation; jQuery fallbacks
to stopPropagation in such a case.
2014-03-18 21:00:42 +01:00
Michał Gołębiowski
7f5a0df20c Core: Change the sleep time in dont_return.php to a sane value
PHP sleep function accepts time in seconds, not milliseconds; the previous
value was starving the PHP FPM process pool.

(cherry-picked from b5074944b0)
2014-03-18 16:50:55 +01:00
Michał Gołębiowski
835d64e81a Core: Blacklist the ready test on async-loaded jQuery in iOS7
(cherry-picked from 551578eb36)

Fixes #14882
2014-03-17 18:13:49 +01:00
Dave Methvin
3be4f13dc5 Event: Unit test for #14741 fix
Fixes #14741
Closes gh-1503
(cherry picked from commit 472f70a9df)
2014-03-16 11:02:17 -04:00
Michał Gołębiowski
85ba301d09 Core: Bump timeouts to stabilize doc ready test
The "document ready when jQuery loaded asynchronously" test fails all the time
in iOS7 and sometimes in other browsers. Bumping the timeouts *might* help
these other browsers to be less flakey here.

(cherry-picked from 854d242db4)
2014-03-13 03:28:04 +01:00
Dave Methvin
4c68d107b5 Event: Call underlying stopImmediatePropagation when present
Fixes #13997
(cherry picked from commit 6a89db86ed)
2014-03-12 21:45:50 -04:00
Michał Gołębiowski
725cdebd39 Core: Add test for jQuery.ready.promise fallback load
Fix #13655
Close gh-1209
Ref 32b066d380
2014-03-13 02:18:29 +01:00
Michał Gołębiowski
412555a0b0 Support: Make the support matrix for iOS 6 match iOS 7 as well
(cherry-picked from 26ce217862)
2014-03-13 01:48:35 +01:00
Michał Gołębiowski
7ade83391e Css: Fix tests
It's not easy to find a CSS property that is implemented even in
ancient browsers and that returns a consistent result among browsers
when passed through .css(). color didn't work since Firefox normalizes
it an empty value to rgb(0, 0, 0).

(cherry-picked from 0c12cb3910)
2014-03-10 20:02:59 +01:00
Michał Gołębiowski
b5050dc489 Support: Simplify the box-sizing test
Don't require body in the support.boxSizing test.
2014-03-10 19:25:25 +01:00
Michał Gołębiowski
4a6d1631ea Css: Revert 24e587929f
The workaround to be able to change !important styles broke the browser
keeping the old CSS value if the new one was rejected. Patching it would
involve a significant perf hit (~33%) so the initial patch needs to be
reverted instead.

Tests by m_gol & gibson042.

(cherry-picked from 10e654218a)

Fixes #14836
Closes gh-1532
2014-03-10 19:20:54 +01:00
Michał Gołębiowski
10e654218a Ajax, Effects: Disable Chrome 31 workarounds 2014-03-10 15:03:03 +01:00