summaryrefslogtreecommitdiff
path: root/www/wiki/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js
diff options
context:
space:
mode:
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.js14
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 ) );