aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authordmethvin <dave.methvin@gmail.com>2011-08-17 17:30:31 -0400
committertimmywil <timmywillisn@gmail.com>2011-08-17 17:34:09 -0400
commit1a738cb72fa9f8b7280f15586a68ef9377b18976 (patch)
tree1806920c7c2f6b55e687f1a203dd3ec760cc18a1 /test/unit
parent130a29e78666def3b477056978406ea2fbcdad2b (diff)
downloadjquery-1a738cb72fa9f8b7280f15586a68ef9377b18976.tar.gz
jquery-1a738cb72fa9f8b7280f15586a68ef9377b18976.zip
Landing pull request 463. Fixes #9572. Don't camelize the `-ms-` prefix because Microsoft didn't. A Fixes #9572.
More Details: - https://github.com/jquery/jquery/pull/463 - http://bugs.jquery.com/ticket/9572
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/core.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index 8c285f6dd..d47920501 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -1129,10 +1129,15 @@ test("jQuery.camelCase()", function() {
var tests = {
"foo-bar": "fooBar",
- "foo-bar-baz": "fooBarBaz"
+ "foo-bar-baz": "fooBarBaz",
+ "girl-u-want": "girlUWant",
+ "the-4th-dimension": "the4thDimension",
+ "-o-tannenbaum": "OTannenbaum",
+ "-moz-illa": "MozIlla",
+ "-ms-take": "msTake"
};
- expect(2);
+ expect(7);
jQuery.each( tests, function( key, val ) {
equal( jQuery.camelCase( key ), val, "Converts: " + key + " => " + val );