diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js |
first commit
Diffstat (limited to 'www/wiki/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js')
-rw-r--r-- | www/wiki/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/wiki/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js b/www/wiki/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js new file mode 100644 index 00000000..74d85090 --- /dev/null +++ b/www/wiki/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js @@ -0,0 +1,14 @@ +( function ( $ ) { + QUnit.module( 'jquery.getAttrs', QUnit.newMwEnvironment() ); + + QUnit.test( 'getAttrs()', function ( assert ) { + var attrs = { + foo: 'bar', + class: 'lorem', + 'data-foo': 'data value' + }, + $el = $( '<div>' ).attr( attrs ); + + assert.propEqual( $el.getAttrs(), attrs, 'keys and values match' ); + } ); +}( jQuery ) ); |