Localisation updates from http://translatewiki.net.
[mediawiki.git] / tests / qunit / suites / resources / jquery / jquery.getAttrs.test.js
blob9377a2f63fd9c9d2eea164c91cbea9c1cc47e357
1 module( 'jquery.getAttrs', QUnit.newMwEnvironment() );
3 test( '-- Initial check', function() {
4         expect(1);
5         ok( $.fn.getAttrs, 'jQuery.fn.getAttrs defined' );
6 } );
8 test( 'Check', function() {
9         expect(1);
10         var     attrs = {
11                         foo: 'bar',
12                         'class': 'lorem'
13                 },
14                 $el = $( '<div>', attrs );
16         deepEqual( $el.getAttrs(), attrs, 'getAttrs() return object should match the attributes set, no more, no less' );
17 } );