- QUnit.test( 'tooltipAccessKey', 4, function ( assert ) {
- this.suppressWarnings();
-
- assert.equal( typeof mw.util.tooltipAccessKeyPrefix, 'string', 'tooltipAccessKeyPrefix must be a string' );
- assert.equal( $.type( mw.util.tooltipAccessKeyRegexp ), 'regexp', 'tooltipAccessKeyRegexp is a regexp' );
- assert.ok( mw.util.updateTooltipAccessKeys, 'updateTooltipAccessKeys is non-empty' );
-
- 'Example [a]'.replace( mw.util.tooltipAccessKeyRegexp, function ( sub, m1, m2, m3, m4, m5, m6 ) {
- assert.equal( m6, 'a', 'tooltipAccessKeyRegexp finds the accesskey hint' );
- } );
-
- this.restoreWarnings();
- } );
-