QUnit: Cannot read property 'onfocusout' of undefined

QUnit: Cannot read property 'onfocusout' of undefined

I'm working on an open source project, and I'm trying to bring its JS libraries up to date. I know very little about QUnit (this is the first time I've encountered it), but I'm getting an error that's over my head.

I've created a jsfiddle for it here:  https://jsfiddle.net/kzm57xv2/

Please let me know if you have any pointers.

Thanks,
Jamie