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