Tests: only run ontimeout test if ontimeout exists
Tests: only run ontimeout test if ontimeout exists

Fixes gh-3742
Close gh-3919

roytoo/jquery,roytoo/jquery,jquery/jquery,roytoo/jquery,jquery/jquery,jquery/jquery