From cf486877316ae9b963d983ec93b656a1d089d4e3 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 25 Nov 2014 02:57:29 +0000 Subject: [PATCH] Migrate jQuery andSelf() to addBack() Deprecated in jQuery 1.8 http://api.jquery.com/andSelf/ Change-Id: I4988c24c4f14c2962f12065acccc7dd51899a2e4 Task: T67399 --- tests/qunit/mmv/ui/mmv.ui.stripeButtons.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qunit/mmv/ui/mmv.ui.stripeButtons.test.js b/tests/qunit/mmv/ui/mmv.ui.stripeButtons.test.js index cb5309423..c7866ef58 100644 --- a/tests/qunit/mmv/ui/mmv.ui.stripeButtons.test.js +++ b/tests/qunit/mmv/ui/mmv.ui.stripeButtons.test.js @@ -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 );