Commit Graph

2175 Commits

Author SHA1 Message Date
Oleg Gaidarenko
e73a67f2e2 Event: fix incorrect test
Which was revealed by 03eaadb131 commit,
also do not try to fix typos in data/jquery version

Cherry-picked from d92310050c
2015-10-12 18:38:41 +03:00
Gary Ye
ef6cd83ab0 Tests:Docs: Fix various typos
* Changes "baar" to "bar" when used with "foo" in readme
  and comments of js files

* mousenter -> mouseenter

Thanks @garysye, @KimTaehee

Cherry-picked from 03eaadb131
Closes gh-2613
Closes gh-2601
2015-10-12 18:09:37 +03:00
Dave Methvin
7e78c2ec81 Event: Move .bind() and .delegate() to deprecated
Cherry-picked from ee0854f85b
Fixes gh-2288
Closes gh-2624
2015-10-12 17:34:20 +03:00
Oleg Gaidarenko
15f79201c4 Tests: Add .extend test for defined accessor properties
Ref 9748e436ad
Closes gh-2615
2015-10-12 17:28:48 +03:00
Oleg Gaidarenko
f60729f390 Ajax: Mitigate possible XSS vulnerability
Proposed by @jaubourg

Cherry-picked from b078a62013
Fixes gh-2432
Closes gh-2588
2015-10-12 17:05:49 +03:00
Richard Gibson
fb98ea49b6 Tests: Use QUnit URL parameter parsing
(cherry picked from commit f23a64d745)
2015-10-08 23:32:05 -04:00
Richard Gibson
5fb689debc Tests: Add dummy modules when running basic tests
Without this, other modules don't appear in the QUnit module picker.

Ref 855b0c8c28
Closes gh-2582

(cherry picked from commit f9af896bb8)
2015-10-08 23:32:05 -04:00
Michał Gołębiowski
4c3e63b47c Tests: Account for Edge in originalEvent UA-sniffs
All other cases where Edge user agent needed to be taken into account
in tests have already been resolved.

(cherry-picked from 64fd7ef3d0)

Fixes gh-2357
2015-09-14 21:14:23 +02:00
Michał Gołębiowski
4b1cff65ce Tests: Fix the expando-removal test failure in IE 8
IE 8 gets the expando removed via removeAttribute so the second assertion
won't be reached. The expected assertion count had to be updated.

Fixes gh-2596
2015-09-14 20:22:19 +02:00
Richard Gibson
4503a61ff1 Tests: Provide equal() arguments in correct order (actual, expected)
Ref 224271982e
Ref f5bf9bc488

(cherry picked from commit d3d8d9751f)

Conflicts:
	test/unit/data.js
2015-09-08 16:30:17 -04:00
Jason Bedard
5a7674d635 Data: test that delete is not used on DOM nodes
(test cherry-picked from 0e982433eb)

Closes gh-2479
2015-09-08 20:31:06 +02:00
Michał Gołębiowski
1b48eef4ca Tests: Really fix tests in IE 8 this time
IE 8 doesn't have indexOf on arrays. Also, one toLowerCase() was missing. Oops.
2015-09-08 18:59:01 +02:00
Michał Gołębiowski
f709a284e2 Tests: Make basic tests work in IE 8
IE 8 prints tag names in upper case which was breaking some tests.

This commit is not necessary on master but has been brought here to keep
tests similar in both branches.

(cherry-picked from 5914b10362)
2015-09-08 18:46:15 +02:00
Michał Gołębiowski
06454d118f Tests: Don't load non-basic tests when basic module is selected
When loading basic tests don't load any others to not overload Android 2.3.
The drawback is that most tests are not selectable in the module dropdown
when the basic module is seelcted.

(cherry-picked from 855b0c8c28)

Refs 2c7e9c9349
2015-09-08 18:45:58 +02:00
Michał Gołębiowski
c7d458fb9e Tests: Backport basic tests from master
Commit 2c7e9c9 added the basic test suite; these are the only tests that
are now run on Android 2.3 on master. On compat we're keeping full Android 2.3
support for now but the tests and the testswarm basic run mode have been
cherry-picked anyway to reduce the divergence between branches.

(cherry-picked from 2c7e9c9349)

Fixes gh-2505
Closes gh-2509
Refs gh-2483
2015-09-08 18:10:51 +02:00
Oleg Gaidarenko
d8b7e7b0bd Tests: more style corrections
Provocated by jscs-dev/node-jscs@2de68c0

Ref c161eecce0
2015-09-08 04:26:33 +03:00
Oleg Gaidarenko
2f0cedc997 Tests: further improvements QUnit 2.0 migration
* Remove QUnit jshint globals
* Extend QUnit.assert methods
* Use assert.async instead of start/stop/done

Ref b930d14ce6
Ref c8d15a2f9f
2015-09-08 04:15:54 +03:00
Thomas Tortorini
f71e32d4b4 Effects: Finish should call progress
(cherry-picked from 3dd3d1357d)

Fixes gh-2283
Closes gh-2292
2015-09-08 02:42:47 +02:00
Jason Bedard
0874096797 Tests: do not create data cache when fetching single property
(test cherry-picked from f5bf9bc488)
Refs gh-2554
2015-09-08 02:02:51 +02:00
Jason Bedard
bec2ba2312 Data: Don't expose jQuery.acceptData
jQuery.acceptData is an undocumented internal API that shouldn't be exposed.

(cherry-picked from 224271982e)

Fixes gh-2555
2015-09-08 01:32:46 +02:00
Michał Gołębiowski
eac265ccdd Tests: lower the PHP sleep time in unreleasedXHR.html
The AJAX test performed in unreleasedXHR.html was scheduling PHP processes
sleeping for 10 minutes. When a lot of commits are tested in short intervals
this was causing build failures due to the drained php-fpm pool.

The 10 seconds sleep time should be enough for this test.

(cherry-picked from 02e10082b2)

Refs 62acda819f
2015-09-08 00:46:25 +02:00
Daniel Nill
f0b86ec050 Serialize: Handle arrays with null values
(cherry-picked from 3d7ce0a65f)

Closes gh-2436
2015-09-07 23:00:47 +02:00
Thomas Tortorini
41a04e59df Effects: Remove additional parameters of easings
(cherry-picked from b7a7dea95f)

Fixes gh-2367
Closes gh-2376
2015-09-07 22:15:09 +02:00
Oleg Gaidarenko
85aed35cb5 Tests: Do not define two modules with the same name
Ref 7aa46e0df8
Fixes gh-2437
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
4543815eed Tests: Partially use new qunit interface
http://qunitjs.com/upgrade-guide-2.x/

For most of the boring work was used
https://github.com/apsdehal/qunit-migrate package

However, it can't update local qunit helpers, plus in some places
old QUnit.asyncTest signature is still used

Ref b930d14ce6
Fixes gh-2540
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
20ddbe4f59 Build: Update jscs and lint files
Ref 10fdad742a
Fixes gh-2056
2015-09-07 20:14:50 +03:00
Michał Gołębiowski
04ec688e80 Core: Support non-browser environments
Fixes gh-2133
Fixes gh-2501
Closes gh-2504
Refs gh-1950
Refs gh-1949
Refs gh-2397
Refs gh-1537
Refs gh-2504
Refs 842958e7ae
2015-08-16 22:29:42 +02:00
Richard Gibson
3923bb8400 Event: Reduce differences from master 2015-08-10 10:30:03 -04:00
Oleg Gaidarenko
b8b111e337 Tests: don't use deprecated argument in test declaration
Ref aabe94edb4
2015-07-30 20:48:26 +03:00
Bruno Pérel
6af92cafca Docs: Fix various spelling mistakes
(cherry-picked from 360a478033)

Closes gh-2487
2015-07-30 15:51:44 +02:00
Jason Bedard
624d6a8580 Data: backport cleanData tests from gh-2480
The tests needed a slight change as on compat we're not removing the
value for expando but setting it to undefined.

Refs gh-2480
2015-07-28 14:38:36 +02:00
Michał Gołębiowski
b3eb2a13cd Ajax: Account for Android 2.3 not firing window.onerror on script errors
Android 2.3 doesn't fire the window.onerror handler, just accept the reality
there and skip the test.

(cherry-picked from 6044fb6a73)

Refs gh-1573
Refs gh-1786
Refs jquery/jquery.com#108
Closes gh-2458
2015-07-28 13:24:32 +02:00
Michał Gołębiowski
5fce498e42 Core: Adjust comments & tests after dropping Safari 6 support
Support comments that mentioned only Safari < 7 were checked & updated
to account for bugs existing in newer versions as well; Safari 6 support
test results were removed.

(cherry-picked from 93bee4701d)

Refs gh-2482
2015-07-27 22:19:57 +02:00
Thomas Tortorini
15f48047bc Core: .each/.map should accept an undefined/null value
(cherry-picked from bf48c21d22)

Fixes gh-2267
Closes gh-2363
2015-07-27 20:02:54 +02:00
Oleg Gaidarenko
3d850edb13 Ajax: Remove jsonp callbacks through "jQuery#removeProp" method
Fixes gh-2323
Closes gh-2464
Ref a2ae215d99
2015-07-13 04:09:31 +03:00
Timmy Willison
fe6afa8268 Effects: fix failing tests in IE8 2015-07-08 13:31:09 -04:00
Michał Gołębiowski
7ee0feaca6 CSS: Add an integration test for issue gh-1764
(cherry-picked from 8887106702)

Refs gh-1764
Refs gh-2401
Closes gh-2425
2015-07-08 12:59:49 +02:00
Michał Gołębiowski
23212b34e6 CSS: Make .css("width") & .css("height") return fractional values
Fixes gh-1724
Closes gh-2454
Refs gh-2439
2015-07-07 18:14:04 +02:00
Timmy Willison
203979d153 Deferred: pass lint in new catch tests 2015-07-06 17:10:26 -04:00
Timmy Willison
ef77f83db8 Deferred: add .catch handler
Fixes gh-2102
2015-07-06 17:08:42 -04:00
Michał Gołębiowski
29561bca8f Effects: Fix tests
Refs 6b10f9d7e9
Refs gh-2340
2015-06-28 22:42:03 +02:00
Corey Frang
d07774ae06 Tests: Fix merge conflict
Introduced in 6b10f9d7e9 originally.

Had a rebase conflict that I fixed but forgot to ⌘-s. ☹
2015-06-26 20:30:56 -04:00
Corey Frang
1390d0736f Tests: Lower the checks rounding error
The CSS value rounding error was causig failures on FF and IE.
2015-06-26 20:21:32 -04:00
Corey Frang
0ff805772a Effects: Adding unit tests for jQuery.Animation
Closes gh-2340

(cherry picked from commit b3b2d6c3dd)

Conflicts:
	src/effects.js
2015-06-26 20:12:42 -04:00
Corey Frang
6b10f9d7e9 Effects: Add tests for jQuery.Tween
Conflicts:
	src/selector-native.js
	test/index.html
	test/unit/effects.js
2015-06-26 20:11:55 -04:00
Michał Gołębiowski
453738ab85 Core: Change support.ownLast to support.ownFirst
jQuery.support.ownLast was the only support test that was supposed
to be false when it succeeded. It was confusing.

Fixes gh-2406
Closes gh-2408
2015-06-23 00:33:51 +02:00
Timmy Willison
a0a5c0be2d Offset: add tests for hidden elements + scroll
- Also add comments to hidden/disconnected tests noting
  this is to ensure consistency between branches
2015-06-16 13:24:12 -04:00
Timmy Willison
63f19a95b9 Offset: return zeros for disconnected/hidden elements
Fixes gh-2310
Close gh-2396
2015-06-16 10:55:51 -04:00
Timmy Willison
ee69e9c8b8 Revert "Offset: allow offset setter to throw for disconnected elements"
This reverts commit 0d11c1182f.
2015-06-16 10:55:48 -04:00
Michał Gołębiowski
d8037c6d52 Tests: Remove test/data/ua.txt
The file was used by $.browser tests but $.browser now doesn't exists
in Core and this file hasn't been updated for a few years.

(cherry-picked from e831856490)

Fixes gh-2398
2015-06-16 16:26:12 +02:00