blob: 6eef1abba105003810366114d39c0ad255f806bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
QUnit.module( 'jquery.getAttrs', QUnit.newMwEnvironment() );
QUnit.test( 'Check', 1, function ( assert ) {
var attrs = {
foo: 'bar',
'class': 'lorem'
},
$el = jQuery( '<div>', attrs );
assert.deepEqual( $el.getAttrs(), attrs, 'getAttrs() return object should match the attributes set, no more, no less' );
} );
|