Commit Graph

5985 Commits

Author SHA1 Message Date
Oleg Gaidarenko
10fdad742a Build: Update jscs and lint files
Fixes gh-2056
2015-09-07 20:03:50 +03:00
Oleg Gaidarenko
7aa46e0df8 Tests: do not define two modules with the same name
Fixes gh-2437
2015-08-16 09:06:13 +03:00
Oleg Gaidarenko
b930d14ce6 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

Fixes gh-2540
2015-08-16 09:02:01 +03:00
Richard Gibson
9d820fbde6 Event: Only check elements for delegation matches
Closes gh-2529
Ref trac-13208
(cherry picked from commit fc2ba2e136)
2015-08-10 10:26:13 -04:00
Michał Gołębiowski
9adfad1986 Core: Don't expose jQuery.access
jQuery.access was never documented, there is no need to keep it exposed.

Fixes gh-2513
Closes gh-2524
2015-08-03 19:33:38 +02:00
Michał Gołębiowski
669cb16d76 Build: Add a comment explaining why the es3 option is needed
It might not be obvious to everyone that IE 9 & Android 4.0 are not
ES5-compliant browsers (by a large margin) so it's better to add a support
comment. This requires slight changes in parsing the config file
as it's not a pure JSON anymore. JSHint understands such files without
problems.

Closes gh-2520
2015-08-03 18:51:18 +02:00
Oleg Gaidarenko
aabe94edb4 Tests: don't use deprecated argument in test declaration
Closes gh-2507
2015-07-30 20:46:31 +03:00
Bruno Pérel
360a478033 Docs: Fix various spelling mistakes
Closes gh-2487
2015-07-30 15:47:23 +02:00
Jason Bedard
5fe76c663f Data: remove user data in cleanData
Fixes gh-2503
Closes gh-2480
2015-07-28 14:22:03 +02:00
Michał Gołębiowski
6044fb6a73 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.

Refs gh-1573
Refs gh-1786
Refs jquery/jquery.com#108
Closes gh-2458
2015-07-28 13:20:20 +02:00
Michał Gołębiowski
2792845534 Event: Update support comments for mouseenter/mouseleave implementation
Custom mouseenter/mouseleave implementation was needed because of:
1. Safari 6 not implementing mouseenter/mouseleave at all.
2. Chrome sending mouseenter too often.

The second issue has been fixed in Chrome but exists now in Safari 7
(it's fixed in Safari 8) so we have to keep it for now, unfortunately.
2015-07-27 22:29:38 +02:00
Michał Gołębiowski
93bee4701d 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.

Refs gh-2482
2015-07-27 22:14:48 +02:00
Thomas Tortorini
bf48c21d22 Core: .each/.map should accept an undefined/null value
Fixes gh-2267
Closes gh-2363
2015-07-27 19:57:34 +02:00
Michał Gołębiowski
d242753726 Core: Add a support comment for Safari 8
Related issue: https://bugs.webkit.org/show_bug.cgi?id=137337

Thanks @phistuck!

Refs cfe468f29c
2015-07-20 20:22:34 +02:00
Michał Gołębiowski
1c59b308d2 Build: Acknowledge Android 2.3 is not ES5-compatible
Android 2.3 chokes on unquoted reserved words being used as property names
which was making Deferred tests not run.

Acknowledge the sad fact that Android 2.3 is not ES5-compliant browser
and enable the "es3" option in JSHint config.

Fixes gh-2478
Closes gh-2481
2015-07-20 18:37:26 +02:00
Marek Lewandowski
bf591fb597 Selector: Define jQuery.uniqueSort in selector-native too
Fixes gh-2466
Closes gh-2467
2015-07-14 09:18:57 -04:00
Timmy Willison
c44dd7775b Release: properly set the dist remote when it's a real release 2015-07-13 15:01:33 -04:00
Oleg Gaidarenko
a2ae215d99 Ajax: Remove jsonp callbacks through "jQuery#removeProp" method
Fixes gh-2323
Closes gh-2464
2015-07-13 01:34:09 +03:00
Timmy Willison
3ec73efb26 Build: add mailmap entry 2015-07-11 11:41:06 -04:00
Timmy Willison
8f13997e89 Build: update AUTHORS.txt 2015-07-08 13:41:48 -04:00
Michał Gołębiowski
dc8ba6af92 Tests: Remove a trailing comma for compatibility with the compat branch 2015-07-08 13:00:38 +02:00
Michał Gołębiowski
8887106702 CSS: Add an integration test for issue gh-1764
Refs gh-1764
Refs gh-2401
Closes gh-2425
2015-07-08 11:54:19 +02:00
Michał Gołębiowski
b60b26e184 CSS: Make .css("width") & .css("height") return fractional values
Fixes gh-1724
Closes gh-2439
2015-07-07 18:09:45 +02:00
Timmy Willison
84ccf2606c Deferred: add .catch handler
Fixes gh-2102
2015-07-06 10:47:30 -04:00
Michał Gołębiowski
8e4aac8cb0 CSS: Improve a comment explaining IE11 fullscreen bug 2015-07-01 23:20:32 +02:00
Corey Frang
a44cfa0066 Tests: Lower the checks rounding error
The CSS value rounding error was causig failures on FF and IE.
2015-06-26 20:20:53 -04:00
Corey Frang
b3b2d6c3dd Effects: Adding unit tests for jQuery.Animation
Closes gh-2326
2015-06-26 20:06:03 -04:00
Corey Frang
cdaed15c7e Effects: Add tests for jQuery.Tween 2015-06-26 20:05:25 -04:00
Thomas Tortorini
3a0d582cf6 CSS: make the getStyles function more readable
The new version is not only simpler to read but also smaller
by 6 bytes gzipped.

Closes gh-2393
2015-06-25 02:48:35 +02:00
Gilad Peleg
5153b5334e Core: organize prop & attr code to be similar
Closes gh-2384
2015-06-23 16:52:00 +03:00
Martin Naumann
90d828bad0 CSS: Work around an IE11 fullscreen dimensions bug
Fixes gh-1764
Closes gh-2401
2015-06-23 00:53:00 +02:00
Timmy Willison
63a577aa0b Build: space between curly and paren is optional
Fixes gh-2399
Close gh-2400
2015-06-19 13:40:11 -04:00
Michał Gołębiowski
842958e7ae Core: Switch from modules to just window.setTimeout etc.
Using modules for window.setTimeout etc. made those functions cached and
disabled Sinon mocking, making effects tests fail. Just writing
window.setTimeout directly is smaller anyway.
2015-06-17 12:59:01 +02:00
Michał Gołębiowski
219c749493 Core: Use window.setTimeout & friends instead of global equivalents
Fixes gh-2177
2015-06-17 12:29:49 +02:00
Timmy Willison
b041242223 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:28:51 -04:00
Timmy Willison
0e4477c676 Offset: return before getBoundingClientRect to avoid error in IE8-11 2015-06-16 11:21:58 -04:00
Timmy Willison
40dcc76764 Offset: return zeros for disconnected/hidden elements
Fixes gh-2310
Close gh-2396
2015-06-16 10:55:11 -04:00
Timmy Willison
578dcee96a Revert "Offset: allow offset setter to throw for disconnected elements"
This reverts commit 0d11c1182f.
2015-06-16 10:54:52 -04:00
Michał Gołębiowski
e831856490 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.

Fixes gh-2398
2015-06-16 16:25:16 +02:00
Michał Gołębiowski
5a1217e401 Tests: Remove Edge version from the user agent
The version will change in the future, matching by /edge\//i is enough

Refs 8e111df641
2015-06-16 14:44:24 +02:00
Michał Gołębiowski
8e111df641 Tests: Add Microsoft Edge results (from Windows 10 build 10130)
The Microsoft Edge user agent contains "Chrome" so it needs to be checked
before Chrome.
2015-06-14 01:56:51 +02:00
Michał Gołębiowski
c17543fd3c Tests: Correct a typo in the regex matching Safari 8 2015-06-14 00:37:31 +02:00
Michał Gołębiowski
349edbd6c5 Manipulation: Remove an internal argument to the remove method
Fixes gh-2301
Closes gh-2366
2015-06-14 00:07:31 +02:00
Michał Gołębiowski
04a29696e5 Event: Remove an internal argument to the on method
Refs gh-2301
2015-06-14 00:06:51 +02:00
Michał Gołębiowski
bb026fc12c Core: Make jQuery objects iterable
Make iterating over jQuery objects possible using ES 2015 for-of:

    for ( node of $( "<div id=narwhal>" ) ) {
        console.log( node.id ); // "narwhal"
    }

Fixes gh-1693
2015-06-13 23:14:36 +02:00
Michał Gołębiowski
9c8a3ecdc4 Build: Refactor Node smoke tests
Utilize the assert module, avoid inline JSHint comments.
2015-06-13 23:08:19 +02:00
Michał Gołębiowski
1556c4661a Build: Update grunt-contrib-jshint 2015-06-13 22:45:52 +02:00
Oleg Gaidarenko
285cfbfccc Build: remove bower.json lint target
Ref 26eca143c2
2015-06-11 16:25:36 +03:00
Oleg Gaidarenko
3655c4e190 Event: remove preDispatch hook & simplify "simulate" signature
Closes gh-2358
2015-06-05 22:14:42 +03:00
Michał Gołębiowski
0019a463bd CSS: Don't name the anonymous swap function
IE8 doesn't like named anonymous expressions. Not naming the function
expression reduces the gzipped size by 5 bytes.

In ECMAScript 2015 the function will get the name inferred from the
variable name (here: swap) anyway.

(cherry-picked from e847574fc7)

Refs 02a9d9f94b
2015-06-01 19:59:23 +02:00