summaryrefslogtreecommitdiff
path: root/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js')
-rw-r--r--tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js b/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js
new file mode 100644
index 00000000..0b7e87ee
--- /dev/null
+++ b/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js
@@ -0,0 +1,13 @@
+( function ( $ ) {
+ QUnit.module( 'jquery.getAttrs', QUnit.newMwEnvironment() );
+
+ QUnit.test( 'Check', 1, function ( assert ) {
+ var attrs = {
+ foo: 'bar',
+ 'class': 'lorem'
+ },
+ $el = $( '<div>' ).attr( attrs );
+
+ assert.deepEqual( $el.getAttrs(), attrs, 'getAttrs() return object should match the attributes set, no more, no less' );
+ } );
+}( jQuery ) );