aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-05-25 15:10:49 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-25 15:10:49 -0400
commit408c98fb4b8c1b6957cfe620711f9ea7645293ba (patch)
tree94269140f3e0e46bade558710a5a978a170909b4 /test/unit
parentb8fc9d14a134f91f17bf96194da86d38231da005 (diff)
downloadjquery-408c98fb4b8c1b6957cfe620711f9ea7645293ba.tar.gz
jquery-408c98fb4b8c1b6957cfe620711f9ea7645293ba.zip
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
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/core.js14
1 files changed, 14 insertions, 0 deletions
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 );
+ });
+});