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:
Timo Tijhof 2014-11-25 02:57:29 +00:00
parent a891e242c2
commit cf48687731

View file

@ -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 );