merge JSTesting branch into trunk
[lhc/web/wiklou.git] / tests / qunit / suites / resources / jquery / jquery.getAttrs.test.js
1 module( 'jquery.getAttrs', QUnit.newMwEnvironment() );
2
3 test( '-- Initial check', function() {
4 expect(1);
5 ok( $.fn.getAttrs, 'jQuery.fn.getAttrs defined' );
6 } );
7
8 test( 'Check', function() {
9 expect(1);
10 var attrs = {
11 foo: 'bar',
12 'class': 'lorem'
13 },
14 $el = $( '<div>', attrs );
15
16 deepEqual( $el.getAttrs(), attrs, 'getAttrs() return object should match the attributes set, no more, no less' );
17 } );