Landing pull request 383. Relocating jQuery.camelCase to core; Fixes #9368.
More Details: - https://github.com/jquery/jquery/pull/383 - http://bugs.jquery.com/ticket/9368
This commit is contained in:
parent
b8fc9d14a1
commit
408c98fb4b
3 changed files with 29 additions and 10 deletions
|
@ -1104,3 +1104,17 @@ test("jQuery.sub() - .fn Methods", function(){
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
test("jQuery.camelCase()", function() {
|
||||
|
||||
var tests = {
|
||||
"foo-bar": "fooBar",
|
||||
"foo-bar-baz": "fooBarBaz"
|
||||
};
|
||||
|
||||
expect(2);
|
||||
|
||||
jQuery.each( tests, function( key, val ) {
|
||||
equal( jQuery.camelCase( key ), val, "Converts: " + key + " => " + val );
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue