test/browser/focus.test.js
/**
	 * Validate an input tag has maintained focus
	 * @param {HTMLInputElement} input The input to validate
	 * @param {string} [message] Message to show if the activeElement is not
	 * equal to the `input` parameter
	 */
Validate an input tag has maintained focus
@param {HTMLInputElement} input The input to validate
@param {string} [message] Message to show if the activeElement is not
equal to the `input` parameter
Validate an input tag has maintained focus @param { HTMLInputElement } input The input to validate @param { string } [ message ] Message to show if the activeElement is not equal to the ` input ` parameter
function validateFocus(input, message) {
		expect(document.activeElement).to.equalNode(input, message);
		expect(input.selectionStart).to.equal(2);
		expect(input.selectionEnd).to.equal(5);
	}
function validateFocus ( input , message ) { expect ( document . activeElement ) . to . equalNode ( input , message ) ; expect ( input . selectionStart ) . to . equal ( 2 ) ; expect ( input . selectionEnd ) . to . equal ( 5 ) ; }
Validate an input tag has maintained focus
 @param {HTMLInputElement} input The input to validate
 @param {string} [message] Message to show if the activeElement is not
 equal to the `input` parameter
Validate an input tag has maintained focus @param { HTMLInputElement } input The input to validate @param { string } [ message ] Message to show if the activeElement is not equal to the ` input ` parameter