mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
Migrate jQuery andSelf() to addBack()
Deprecated in jQuery 1.8 http://api.jquery.com/andSelf/ Change-Id: I4988c24c4f14c2962f12065acccc7dd51899a2e4 Task: T67399
This commit is contained in:
parent
a891e242c2
commit
cf48687731
|
@ -65,7 +65,7 @@
|
|||
buttons.setDescriptionPageButton( imageInfo, repoInfo );
|
||||
|
||||
assert.ok( !button.hasClass( 'mw-mmv-repo-button-commons' ), 'Button does not have commons class non-Commons files' );
|
||||
assert.strictEqual( button.find( 'a' ).andSelf().filter( 'a').attr( 'href' ), descriptionUrl, 'Description page link is correct' );
|
||||
assert.strictEqual( button.find( 'a' ).addBack().filter( 'a').attr( 'href' ), descriptionUrl, 'Description page link is correct' );
|
||||
|
||||
repoInfo.isCommons = function() { return true; };
|
||||
buttons.setDescriptionPageButton( imageInfo, repoInfo );
|
||||
|
|
Loading…
Reference in a new issue