Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

tests(jQuery): test on both oldest & latest supported jQuery version (+ a minor jqLite refactor) #14229

Closed
wants to merge 4 commits into from

Conversation

mgol
Copy link
Member

@mgol mgol commented Mar 13, 2016

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Refactor.

What is the current behavior? (You can also link to an open issue here)

  1. The useCapture parameter is passed to add/removeEventListener, there are wrappers created for those methods.
  2. Tests are run only in the oldest supported jQuery version.

What is the new behavior (if this is a feature change)?

  1. A minor refactor in jqLite (removal of unnecessary add/removeEventListener wrappers, no longer passing the useCapture parameter).
  2. Running tests on both oldest & newest jQuery version used.

Does this PR introduce a breaking change?
No.

Please check if the PR fulfills these requirements

Other information:
None.

@mgol
Copy link
Member Author

mgol commented Mar 13, 2016

I created 3 commits as they made sense as encapsulated changes.

@petebacondarwin
Copy link
Contributor

A couple of minor comments but otherwise looks good.

@mgol mgol changed the title tests(jQuery): test on both oldest & latest supported jQuery version (+ a minor jqLite behavior) tests(jQuery): test on both oldest & latest supported jQuery version (+ a minor jqLite refactor) Mar 14, 2016
mgol added 4 commits March 14, 2016 22:37
The useCapture parameter defaults to false even in oldest of our supported
browsers; this is no longer needed. jQuery has removed it in 2.2 as well.
Code patching the change event in jQuery doesn't exist in jQuery 2 so this patch
hasn't been needed since Angular 1.3
@mgol
Copy link
Member Author

mgol commented Mar 14, 2016

The PR is ready but Travis can't connect to Sauce Labs:

Response: {"error": "Too many active user tunnels: 30 >= 30"}.

Do we have too many projects using the same Sauce key?

@petebacondarwin
Copy link
Contributor

Landed! Thanks @mgol

@mgol mgol deleted the jquery branch March 16, 2016 23:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants