Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed bug #697: Remote validation uses wrong error messages#1028

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
denisson wants to merge1 commit intojquery-validation:masterfromdenisson:master

Conversation

denisson
Copy link
Contributor

This change doesn't break any existing unit test, but there is no additional tests. It would be great if somebody could create these tests, because I don't know how to do it.

@Arkni
Copy link
Member

@denisson
You can add this unit test (which fails without your fix) to your PR:

test("Fix #697: remote validation uses wrong error messages",function(assert){vare=$("#username"),done1=assert.async(),done2=assert.async(),done3=assert.async(),v=$("#userForm").validate({rules:{username:{required:true,remote:{url:"users.php"}}},messages:{username:{remote:$.validator.format("{0} in use")}}});$("#userForm").valid();e.val("Peter");v.element(e);setTimeout(function(){equal(v.errorList[0].message,"Peter in use");done1();e.val("something");v.element(e);e.val("Peter");v.element(e);setTimeout(function(){equal(v.errorList[0].message,"Peter in use");done2();e.val("asdf");v.element(e);setTimeout(function(){equal(v.errorList[0].message,"asdf in use","error message should be updated");done3();});});});});
NB: You should also rebase the PR on top ofupstream/master

@staabm
Copy link
Member

@denisson please adjust the commit message so it starts withCore: and add the test@Arkni provided

@Arkni
Copy link
Member

@denisson
Did you find the time to add the unit test ?

@denisson
Copy link
ContributorAuthor

@Arkni
Sorry. I was on vacation, but I will try to do it today.
Thanks for your help!

@Arkni
Copy link
Member

@denisson any update on this?

@denisson
Copy link
ContributorAuthor

I am having problems with commitplease. I guess I'm doing something wrong.
I will try again.

On Tue, Dec 22, 2015 at 11:25 AM, Brahim Arkninotifications@github.com
wrote:

@denissonhttps://github.com/denisson any update on this?


Reply to this email directly or view it on GitHub
#1028 (comment)
.

@Arkni
Copy link
Member

You have to start your commit message withCore:, something like:

Core: Remote validation uses wrong error messagesFixes #697

@staabm
Copy link
Member

@denisson thx. rebased your change and landed it in master.

@Arkni thx for the test, added it after rebase.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
1.14.0
Development

Successfully merging this pull request may close these issues.

4 participants
@denisson@Arkni@staabm@jzaefferer

[8]ページ先頭

©2009-2025 Movatter.jp