blob: 9377a2f63fd9c9d2eea164c91cbea9c1cc47e357 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module( 'jquery.getAttrs', QUnit.newMwEnvironment() );
test( '-- Initial check', function() {
expect(1);
ok( $.fn.getAttrs, 'jQuery.fn.getAttrs defined' );
} );
test( 'Check', function() {
expect(1);
var attrs = {
foo: 'bar',
'class': 'lorem'
},
$el = $( '<div>', attrs );
deepEqual( $el.getAttrs(), attrs, 'getAttrs() return object should match the attributes set, no more, no less' );
} );
|