core-test/tests/commands/built-in/focus-off/checkFocusOff.js
// Note: This is the same test as the blur command but with different timings - focus-off is an alternative syntax.
This is the same test as the blur command but with different timings - focus-off is an alternative syntax.
This is the same test as the blur command but with different timings - focus - off is an alternative syntax .
function checkFocusOffA(o) {
	let checkFocusOffEl = _initTest('checkFocusOff');
	if (!checkFocusOffEl) return;
	let el = _getObj('#focusOffField');
	if (!el.isSameNode(document.activeElement)) {
		_fail(checkFocusOffEl, '#focusOffField is not in focus for the first test and it should be.');
	}
}
function checkFocusOffA ( o ) { let checkFocusOffEl = _initTest ( 'checkFocusOff' ) ; if ( ! checkFocusOffEl ) return ; let el = _getObj ( '#focusOffField' ) ; if ( ! el . isSameNode ( document . activeElement ) ) { _fail ( checkFocusOffEl , '#focusOffField is not in focus for the first test and it should be.' ) ; } }
Note: This is the same test as the blur command but with different timings - focus-off is an alternative syntax.
Note : This is the same test as the blur command but with different timings - focus - off is an alternative syntax .