mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-12 07:25:13 +00:00
Fix linting path for test files and make a pass
Change-Id: Iee023c901d6e87c6d23ce78a57c16c73d90e3efb
This commit is contained in:
parent
237c181c69
commit
cdd4a6bd83
|
@ -13,7 +13,7 @@ module.exports = function ( grunt ) {
|
||||||
},
|
},
|
||||||
all: [
|
all: [
|
||||||
'*.js',
|
'*.js',
|
||||||
'tests/*.js',
|
'tests/**/*.js',
|
||||||
'modules/**/*.js'
|
'modules/**/*.js'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,8 +5,11 @@
|
||||||
|
|
||||||
QUnit.test( 'Initialize HelpDialog', function ( assert ) {
|
QUnit.test( 'Initialize HelpDialog', function ( assert ) {
|
||||||
var helpDialog = new HelpDialog(),
|
var helpDialog = new HelpDialog(),
|
||||||
windowManager = new OO.ui.WindowManager(),
|
windowManager = new OO.ui.WindowManager();
|
||||||
dialogue = new HelpDialog();
|
|
||||||
|
function getSlideTextHtml( slide ) {
|
||||||
|
return slide.$element.find( '.mw-help-dialog-text' ).html();
|
||||||
|
}
|
||||||
|
|
||||||
$( 'body' ).append( windowManager.$element );
|
$( 'body' ).append( windowManager.$element );
|
||||||
windowManager.addWindows( [ helpDialog ] );
|
windowManager.addWindows( [ helpDialog ] );
|
||||||
|
@ -19,8 +22,4 @@
|
||||||
assert.equal( getSlideTextHtml( helpDialog.slides[ 3 ] ), mw.message( 'revisionslider-help-dialog-slide4' ).parse() );
|
assert.equal( getSlideTextHtml( helpDialog.slides[ 3 ] ), mw.message( 'revisionslider-help-dialog-slide4' ).parse() );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
function getSlideTextHtml( slide ) {
|
|
||||||
return slide.$element.find( '.mw-help-dialog-text' ).html();
|
|
||||||
}
|
|
||||||
|
|
||||||
} )( mediaWiki );
|
} )( mediaWiki );
|
||||||
|
|
Loading…
Reference in a new issue