dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Handle invalid input to Special:FilePath?file="
[lhc/web/wiklou.git]
/
tests
/
qunit
/
suites
/
resources
/
jquery
/
jquery.getAttrs.test.js
diff --git
a/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js
b/tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js
index
0b7e87e
..
ae464f0
100644
(file)
--- a/
tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js
+++ b/
tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js
@@
-1,13
+1,14
@@
-( function (
$
) {
+( function () {
QUnit.module( 'jquery.getAttrs', QUnit.newMwEnvironment() );
QUnit.module( 'jquery.getAttrs', QUnit.newMwEnvironment() );
- QUnit.test( '
Check', 1
, function ( assert ) {
+ QUnit.test( '
getAttrs()'
, function ( assert ) {
var attrs = {
foo: 'bar',
var attrs = {
foo: 'bar',
- 'class': 'lorem'
+ class: 'lorem',
+ 'data-foo': 'data value'
},
$el = $( '<div>' ).attr( attrs );
},
$el = $( '<div>' ).attr( attrs );
- assert.
deepEqual( $el.getAttrs(), attrs, 'getAttrs() return object should match the attributes set, no more, no less
' );
+ assert.
propEqual( $el.getAttrs(), attrs, 'keys and values match
' );
} );
} );
-}(
jQuery
) );
+}() );