10000 Tests: Add tests for `jQuery.get( String, null-ish, null-ish, String )` by mgol · Pull Request #5640 · jquery/jquery · GitHub
[go: up one dir, main page]

Skip to content

Tests: Add tests for jQuery.get( String, null-ish, null-ish, String ) #5640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

mgol
Copy link
Member
@mgol mgol commented Mar 17, 2025

Summary

Also, fix mock.php formatting to not fail the
jQuery.get( String, null, String ) test in PHP mode.

Ref gh-4989
Ref jquery/api.jquery.com#1208

Checklist

Also, fix `mock.php` formatting to not fail the
`jQuery.get( String, null, String )` test in PHP mode.

Ref jquerygh-4989
Ref jquery/api.jquery.com#1208
@mgol
Copy link
Member Author
mgol commented Mar 17, 2025

@mgol mgol added the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Mar 25, 2025
@timmywil timmywil removed the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Mar 31, 2025
@mgol mgol merged commit 7668756 into jquery:main Mar 31, 2025
17 checks passed
@mgol mgol deleted the jquery-get-test-fixes branch March 31, 2025 16:09
@mgol mgol removed the Needs review label Mar 31, 2025
@mgol mgol added this to the 4.0.0 milestone Mar 31, 2025
mgol added a commit to mgol/jquery that referenced this pull request Mar 31, 2025
Also, fix `mock.php` formatting to not fail the
`jQuery.get( String, null, String )` test in PHP mode.

Ref jquerygh-5640
Ref jquerygh-4989
Ref jquery/api.jquery.com#1208
mgol added a commit to mgol/jquery that referenced this pull request Mar 31, 2025
The original test's `text` variant just repeated the previous test with 3
parameters; the goal was to use 4 ones. This fixes it.

Ref jquerygh-5640
Ref jquerygh-5645
@mgol
Copy link
Member Author
mgol commented Mar 31, 2025

mgol added a commit to mgol/jquery that referenced this pull request Apr 1, 2025
The original test's `text` variant just repeated the previous test with 3
parameters; the goal was to use 4 ones. This fixes it.

Ref jquerygh-5640
Ref jquerygh-5645
mgol added a commit to mgol/jquery that referenced this pull request Apr 1, 2025
Also, fix `mock.php` formatting to not fail the
`jQuery.get( String, null, String )` test in PHP mode.

Ref jquerygh-5640
Ref jquerygh-4989
Ref jquery/api.jquery.com#1208
mgol added a commit that referenced this pull request May 12, 2025
The original test's `text` variant just repeated the previous test with 3
parameters; the goal was to use 4 ones. This fixes it.

Closes gh-5646
Ref gh-5640
Ref gh-5645
mgol added a commit that referenced this pull request May 12, 2025
Also, fix `mock.php` formatting to not fail the
`jQuery.get( String, null, String )` test in PHP mode.

Closes gh-5645
Ref gh-5640
Ref gh-4989
Ref jquery/api.jquery.com#1208
mgol added a commit to mgol/api.jquery.com that referenced this pull request May 12, 2025
In jQuery 3.x and older, when providing a `null` value for `success` you also
have to provide the `data` parameter; you can set it to `undefined`.

Document this restriction of `jQuery.get` & `jQuery.post`.

Closes jquerygh-1208
Ref jquery/jquery#4989
Ref jquery/jquery#5139
Ref jquery/jquery#5640
Ref jquery/jquery#5645
Ref jquery/jquery#5646
mgol added a commit to jquery/api.jquery.com that referenced this pull request May 12, 2025
In jQuery 3.x and older, when providing a `null` value for `success` you also
have to provide the `data` parameter; you can set it to `undefined`.

Document this restriction of `jQuery.get` & `jQuery.post`.

Closes gh-1208
Ref jquery/jquery#4989
Ref jquery/jquery#5139
Ref jquery/jquery#5640
Ref jquery/jquery#5645
Ref jquery/jquery#5646
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants
0