@@ -298,7 +298,7 @@ test(".data(String) and .data(String, Object)", function() {
298298} ) ;
299299
300300test ( "data-* attributes" , function ( ) {
301- expect ( 37 ) ;
301+ expect ( 38 ) ;
302302 var div = jQuery ( "<div>" ) ,
303303 child = jQuery ( "<div data-myobj='old data' data-ignored=\"DOM\" data-other='test'></div>" ) ,
304304 dummy = jQuery ( "<div data-myobj='old data' data-ignored=\"DOM\" data-other='test'></div>" ) ;
@@ -356,6 +356,7 @@ test("data-* attributes", function() {
356356 . attr ( "data-five" , "5" )
357357 . attr ( "data-point" , "5.5" )
358358 . attr ( "data-pointe" , "5.5E3" )
359+ . attr ( "data-hexadecimal" , "0x42" )
359360 . attr ( "data-pointbad" , "5..5" )
360361 . attr ( "data-pointbad2" , "-." )
361362 . attr ( "data-badjson" , "{123}" )
@@ -370,6 +371,7 @@ test("data-* attributes", function() {
370371 strictEqual ( child . data ( "five" ) , 5 , "Primitive number read from attribute" ) ;
371372 strictEqual ( child . data ( "point" ) , 5.5 , "Primitive number read from attribute" ) ;
372373 strictEqual ( child . data ( "pointe" ) , 5500 , "Primitive number read from attribute" ) ;
374+ strictEqual ( child . data ( "hexadecimal" ) , 66 , "Hexadecimal number read from attribute" ) ;
373375 strictEqual ( child . data ( "pointbad" ) , "5..5" , "Bad number read from attribute" ) ;
374376 strictEqual ( child . data ( "pointbad2" ) , "-." , "Bad number read from attribute" ) ;
375377 strictEqual ( child . data ( "badjson" ) , "{123}" , "Bad number read from attribute" ) ;
0 commit comments