diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-08-05 07:45:05 -0700 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-08-05 07:45:05 -0700 |
commit | b22c9046529852c7ce567df13397849e11e2b9cc (patch) | |
tree | 15ca534d9f5b415f2a23530da169300e74a9c0a3 /test/unit | |
parent | 37254bab91b6e006716029c599bab06792015925 (diff) | |
parent | e7af6a296b75b8583175726039f2946de27549fc (diff) | |
download | jquery-b22c9046529852c7ce567df13397849e11e2b9cc.tar.gz jquery-b22c9046529852c7ce567df13397849e11e2b9cc.zip |
Merge pull request #456 from rwldrn/9318
Improves support for arbitrary numbers in data keys. Fixes #9318
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/data.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/unit/data.js b/test/unit/data.js index 55201b4e3..4e21f563e 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -538,10 +538,13 @@ test("jQuery.data supports interoperable hyphenated/camelCase get/set of propert "an-object": {}, "bool-true": true, "bool-false": false, - "some-json": '{ "foo": "bar" }' + "some-json": '{ "foo": "bar" }', + "num-1-middle": true, + "num-end-2": true, + "2-num-start": true }; - expect( 18 ); + expect( 24 ); jQuery.each( datas, function( key, val ) { div.data( key, val ); @@ -578,4 +581,4 @@ test("jQuery.data supports interoperable removal of hyphenated/camelCase propert equal( div.data( key ), undefined, "get: " + key ); }); -});
\ No newline at end of file +}); |