-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Squashed/rebased #1373 #1531
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
Squashed/rebased #1373 #1531
Conversation
@staabm |
@Arkni missed this PR... could you rebase it against master? |
This PR is a rebase of #1373 and this was opened 4 months ago under the presumption that it would be landed more/less in a timely manner (i.e. without merge conflict). What's the guarantee that this second rebase will be landed in a timely manner? |
@twolfson I am willing to land it and now also have the required permissions to do it :-) |
Alright, taking a look at rebasing now |
1426f2b
to
1cc5524
Compare
The test is failing due to this check (src/core.js#L643-L647): if ( element.hasAttribute( "contenteditable" ) ) {
val = $element.text();
} else {
val = $element.val();
} The mocked file input does not have the test/methods.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/methods.js b/test/methods.js
index 0848357..cf29f04 100644
--- a/test/methods.js
+++ b/test/methods.js
@@ -37,7 +37,8 @@ function acceptFileDummyInput( filename, mimeType ) {
type: "file",
files: fileList,
nodeName: "INPUT",
- value: "/tmp/fake_value"
+ value: "/tmp/fake_value",
+ hasAttribute: function() { return false; }
};
} |
Sorry, got side-tracked on other work. Thanks for the pointer. I will try that out in a bit |
1cc5524
to
3da4693
Compare
test( "file accept - image wildcard", function() { | ||
var input = acceptFileDummyInput( "test.png", "image/png" ), | ||
$form = $( "<form />" ), | ||
proxy = $.proxy( $.validator.methods.accept, new $.validator( {}, $form[ 0 ] ), null, input, "image/*" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this $.proxy
come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was in the initial PR (#1373) but it's defined via jQuery and essential is ES5's Function.bind
:
Will land it tomorrow after beeing back on the pc. Thx so far. |
Sweet, thanks =) |
@twolfson landed it right now after a few minor changes in the commit message. thank you! |
Cool, thanks =) |
As requested by @jzaefferer in #1512, we have taken care of squashing/rebasing #1373 while maintaining appropriate authorship. To make this easier for future persons, these are the steps I took:
/cc @jzaefferer