summaryrefslogtreecommitdiff
path: root/tests/qunit/suites/resources/jquery/jquery.getAttrs.js
blob: 3d3d01e137fbadc3196a6586ca117c6f3d5d8509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module( 'jquery.getAttrs.js' );

test( '-- Initial check', function() {
	expect(1);
	ok( $.fn.getAttrs, 'jQuery.fn.getAttrs defined' );
} );

test( 'Check', function() {
	expect(1);
	var	attrs = {
			foo: 'bar',
			'class': 'lorem'
		},
		$el = $( '<div>', attrs );

	deepEqual( $el.getAttrs(), attrs, 'getAttrs() return object should match the attributes set, no more, no less' );
} );