Commit Graph

11 Commits

Author SHA1 Message Date
Michał Gołębiowski-Owczarek
98b539171b All: Migrate away from deprecated/removed Core APIs
Summary of the changes:

* Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against
* Build: Load jQuery & Migrate via HTTPS
* Build: Add package-lock.json to .gitignore
* Build: Update jQuery Migrate from 3.0.0 to 3.1.0
* Build: Allow to run tests against jQuery 3.x-git
* Build: Fix formatting according to JSCS rules
* Build: Disable JSCS for the inlined jQuery Color
* All: Switch from $.isArray to Array.isArray (jQuery.isArray will be
  removed in jQuery 4.0)
* All: Switch from `$.isFunction( x )` to `typeof x === "function"`
  (jQuery.isFunction will be removed in jQuery 4.0)
* All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0
* Effects: Fix a timing issue in a variable declaration. Previously,
  a jQuery object was created, chained & assigned to a variable that
  was then accessed in a callback used inside of this chained
  definition. Due to a timing difference in when the callback fired for
  the first time in latest jQuery master, it was being called before
  the variable was defined.
* Tests: Make dialog & draggable unit tests less strict (newest jQuery
  returns fractional results in some cases, making comparisons fail when
  there's a tiny difference)
* All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim
  will be deprecated in jQuery 3.5)

Closes gh-1901
2019-12-08 22:23:08 +01:00
Scott González
3a45a47968 Effects: Adjust animation duration in tests
With jQuery 3 using `requestAnimationFrame()`, the `setTimeout()` timing
for short animations wasn't working consistently. This resulted in infrequent
failures everywhere (but infrequent enough that it's hard to even notice), but
consistent failures in IE and Edge. Bumping up the duration and running the
assertions in the middle seems to give consistent results.

Eventually, we should refactor this to use `requestAnimationFrame()` in the
tests themselves to avoid problems like this.

Closes gh-1738
2016-08-30 16:37:24 -04:00
Scott González
ba91b324ab Effects: Fix timing of .animateClass() assertion 2016-07-06 16:29:43 -04:00
Amanpreet Singh
3dd45b1ae6 Effects: Shift to use no globals 2016-04-14 00:06:12 +05:30
Jörn Zaefferer
7f3bb4dc4f Tests: Fix jshint includes for datepicker and effects 2015-10-01 12:13:35 +02:00
Alexander Schmitz
3d43f0d7a4 Build: Style updates
Ref #14246
2015-09-11 08:36:41 -04:00
Alexander Schmitz
f520f9ef42 Effects: Style updates
Ref #14246
2015-09-11 08:36:41 -04:00
Alexander Schmitz
de242d8ca9 Effects: Style updates
Ref #14246
Ref gh-1588
2015-08-21 08:06:24 -04:00
Alexander Schmitz
59ea81003d Effects: Move individual effects into effects folder
Ref #13885
2015-08-08 00:29:38 -04:00
Jörn Zaefferer
8b89f8c59b Effect: Make .transfer() callback optional
Adds two tests to at least check that no exception is thrown.

Fixes #12223
Closes gh-1545
2015-04-24 15:13:07 +02:00
Scott González
bde431bb44 Tests: Rename files
Ref gh-1528
2015-04-09 09:27:00 -04:00