@@ -298,7 +298,7 @@ test(".data(String) and .data(String, Object)", function() {
298
298
} ) ;
299
299
300
300
test ( "data-* attributes" , function ( ) {
301
- expect ( 37 ) ;
301
+ expect ( 38 ) ;
302
302
var div = jQuery ( "<div>" ) ,
303
303
child = jQuery ( "<div data-myobj='old data' data-ignored=\"DOM\" data-other='test'></div>" ) ,
304
304
dummy = jQuery ( "<div data-myobj='old data' data-ignored=\"DOM\" data-other='test'></div>" ) ;
@@ -356,6 +356,7 @@ test("data-* attributes", function() {
356
356
. attr ( "data-five" , "5" )
357
357
. attr ( "data-point" , "5.5" )
358
358
. attr ( "data-pointe" , "5.5E3" )
359
+ . attr ( "data-hexadecimal" , "0x42" )
359
360
. attr ( "data-pointbad" , "5..5" )
360
361
. attr ( "data-pointbad2" , "-." )
361
362
. attr ( "data-badjson" , "{123}" )
@@ -370,6 +371,7 @@ test("data-* attributes", function() {
370
371
strictEqual ( child . data ( "five" ) , 5 , "Primitive number read from attribute" ) ;
371
372
strictEqual ( child . data ( "point" ) , 5.5 , "Primitive number read from attribute" ) ;
372
373
strictEqual ( child . data ( "pointe" ) , 5500 , "Primitive number read from attribute" ) ;
374
+ strictEqual ( child . data ( "hexadecimal" ) , 66 , "Hexadecimal number read from attribute" ) ;
373
375
strictEqual ( child . data ( "pointbad" ) , "5..5" , "Bad number read from attribute" ) ;
374
376
strictEqual ( child . data ( "pointbad2" ) , "-." , "Bad number read from attribute" ) ;
375
377
strictEqual ( child . data ( "badjson" ) , "{123}" , "Bad number read from attribute" ) ;
0 commit comments