aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-11-13 15:00:47 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-11-13 15:00:47 +0300
commit41ebc4096dbc92b93875deb8b10f03e08379a0cd (patch)
tree3f1a3dbddcb16d25173b2f7b4e07181c62009e43 /test
parent3a98c4ab27d6a5c2934a90804a5e2bdcdeea6d91 (diff)
downloadjquery-41ebc4096dbc92b93875deb8b10f03e08379a0cd.tar.gz
jquery-41ebc4096dbc92b93875deb8b10f03e08379a0cd.zip
Revert "Data: camelCasing should not ignore case"
This reverts commit 172cad80ac635d8900aa6a3504c89f38b320488e.
Diffstat (limited to 'test')
-rw-r--r--test/unit/data.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/test/unit/data.js b/test/unit/data.js
index 31c6a6174..abd01e92e 100644
--- a/test/unit/data.js
+++ b/test/unit/data.js
@@ -629,18 +629,7 @@ QUnit.test( ".data always sets data with the camelCased key (gh-2257)", function
} );
} );
-QUnit.test( ".data should not strip more than one hyphen when camelCasing (gh-2070)", function( assert ) {
- assert.expect( 3 );
- var div = jQuery( "<div data-nested-single='single' data-nested--double='double' data-nested---triple='triple'></div>" ).appendTo( "#qunit-fixture" ),
- allData = div.data();
-
- assert.equal( allData.nestedSingle, "single", "Key is correctly camelCased" );
- assert.equal( allData[ "nested-Double" ], "double", "Key with double hyphens is correctly camelCased" );
- assert.equal( allData[ "nested--Triple" ], "triple", "Key with triple hyphens is correctly camelCased" );
-} );
-
-QUnit.test( ".data supports interoperable hyphenated/camelCase get/set of properties with arbitrary non-null|NaN|undefined values", function( assert ) {
-
+QUnit.test(".data supports interoperable hyphenated/camelCase get/set of properties with arbitrary non-null|NaN|undefined values", function( assert ) {
var div = jQuery( "<div/>", { id: "hyphened" } ).appendTo( "#qunit-fixture" ),
datas = {
"non-empty": "a string",