diff options
Diffstat (limited to 'test/unit/data.js')
-rw-r--r-- | test/unit/data.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/data.js b/test/unit/data.js index 077362eda..00eb9b48e 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -878,3 +878,12 @@ QUnit.test( ".data(prop) does not create expando", function( assert ) { } } } ); + +QUnit.test( ".data(camelCase) retrieves hyphenated keys", function( assert ) { + assert.expect( 1 ); + + var div = jQuery( "<div/>" ); + + $.data( div[ 0 ], "data-test", "data" ); + assert.equal( div.data( "dataTest" ), "data" ); +} ); |