Merge "Define 'MW_UPDATER' when running update.php"
[mediawiki.git] / tests / qunit / suites / resources / jquery / jquery.getAttrs.test.js
blob0b7e87ee2140d816d84b9bf61bcd4c8678b00b2f
1 ( function ( $ ) {
2         QUnit.module( 'jquery.getAttrs', QUnit.newMwEnvironment() );
4         QUnit.test( 'Check', 1, function ( assert ) {
5                 var attrs = {
6                                 foo: 'bar',
7                                 'class': 'lorem'
8                         },
9                         $el = $( '<div>' ).attr( attrs );
11                 assert.deepEqual( $el.getAttrs(), attrs, 'getAttrs() return object should match the attributes set, no more, no less' );
12         } );
13 }( jQuery ) );