|
41 | 41 |
|
42 | 42 | same( $("body").jqmData("foo"), true, "getting data returns the right value" );
|
43 | 43 |
|
44 |
| - same( $("body").data($.mobile.ns + "foo"), true, "data was set using namespace" ); |
| 44 | + same( $("body").data($.mobile.nsNormalize("foo")), true, "data was set using namespace" ); |
45 | 45 |
|
46 | 46 | same( $("body").jqmData("foo", undefined), true, "getting data still returns the value if there's an undefined second arg" );
|
47 | 47 |
|
48 |
| - same( $("body").jqmData(), { "nstest-foo": true}, "passing no arguments returns a hash with all set properties" ); |
| 48 | + same( $("body").jqmData(), { "nstestFoo": true}, "passing no arguments returns a hash with all set properties" ); |
49 | 49 |
|
50 |
| - same( $("body").jqmData(undefined), { "nstest-foo": true}, "passing a single undefined argument returns a hash with all set properties" ); |
| 50 | + same( $("body").jqmData(undefined), { "nstestFoo": true}, "passing a single undefined argument returns a hash with all set properties" ); |
51 | 51 |
|
52 |
| - same( $("body").jqmData(undefined, undefined), {"nstest-foo": true}, "passing 2 undefined arguments returns a hash with all set properties" ); |
| 52 | + same( $("body").jqmData(undefined, undefined), {"nstestFoo": true}, "passing 2 undefined arguments returns a hash with all set properties" ); |
53 | 53 |
|
54 | 54 | same( $("body").jqmRemoveData("foo"), $("body"), "jqmRemoveData returns the element" );
|
55 | 55 |
|
|
63 | 63 |
|
64 | 64 | same( $.jqmData(document.body, "foo"), true, "getting data returns the right value" );
|
65 | 65 |
|
66 |
| - same( $.data(document.body, $.mobile.ns + "foo"), true, "data was set using namespace" ); |
| 66 | + same( $.data(document.body, $.mobile.nsNormalize("foo")), true, "data was set using namespace" ); |
67 | 67 |
|
68 | 68 | same( $.jqmData(document.body, "foo", undefined), true, "getting data still returns the value if there's an undefined second arg" );
|
69 | 69 |
|
70 |
| - same( $.jqmData(document.body), { "nstest-foo": true}, "passing no arguments returns a hash with all set properties" ); |
| 70 | + same( $.jqmData(document.body), { "nstestFoo": true}, "passing no arguments returns a hash with all set properties" ); |
71 | 71 |
|
72 |
| - same( $.jqmData(document.body, undefined), { "nstest-foo": true}, "passing a single undefined argument returns a hash with all set properties" ); |
| 72 | + same( $.jqmData(document.body, undefined), { "nstestFoo": true}, "passing a single undefined argument returns a hash with all set properties" ); |
73 | 73 |
|
74 |
| - same( $.jqmData(document.body, undefined, undefined), {"nstest-foo": true}, "passing 2 undefined arguments returns a hash with all set properties" ); |
| 74 | + same( $.jqmData(document.body, undefined, undefined), {"nstestFoo": true}, "passing 2 undefined arguments returns a hash with all set properties" ); |
75 | 75 |
|
76 | 76 | same( $.jqmRemoveData(document.body, "foo"), undefined, "jqmRemoveData returns the undefined value" );
|
77 | 77 |
|
|
0 commit comments