>'),
          childEl = $('<span />').appendTo(el),
          wrapper = $('<div />'),
          elData = { foo: 'bar' }

        el.wrap(wrapper).data('test', elData)
        childEl.data('test', 1)

        wrapper.html('<b>New content</b>')
        t.assertEqual('val', el.data('attrTest'))
        t.assertUndefined(el.data('test'))
        t.assertUndefined(childEl.data('test'))
      },

      testKeepDataOnElementDetach: function(t){
        var el = $('<div data-attr-test=val />'),
          childEl =