From 408c98fb4b8c1b6957cfe620711f9ea7645293ba Mon Sep 17 00:00:00 2001 From: rwldrn Date: Wed, 25 May 2011 15:10:49 -0400 Subject: 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 --- test/unit/core.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/unit') diff --git a/test/unit/core.js b/test/unit/core.js index 75d3e0e2c..3a1553526 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -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 ); + }); +}); -- cgit v1.2.3