For dijit/tests/helpers::onFocus(), if focus changes multiple times during the specified delay, return the latest focus to the callback.    Fixes a problem in the cancel test in Dialog_mouse.html: due to [23488], focus first goes to the close icon and then goes back to the button.  Perhaps the close icon should only get tabIndex=-1 when there are no focusable elements in the dialog?   For now, just changing the dijit/tests/helpers::onFocus() method.  Refs #8285 !strict.
For dijit/tests/helpers::onFocus(), if focus changes multiple times during the specified delay, return the latest focus to the callback.    Fixes a problem in the cancel test in Dialog_mouse.html: due to [23488], focus first goes to the close icon and then goes back to the button.  Perhaps the close icon should only get tabIndex=-1 when there are no focusable elements in the dialog?   For now, just changing the dijit/tests/helpers::onFocus() method.  Refs #8285 !strict.


git-svn-id: 674a2d6b1e32e53f607eb824547723f32280967e@30805 560b804f-0ae3-0310-86f3-f6aa0a117693

Sam-Cummins/delite,kitsonk/delite,kitsonk/delite,harbalk/delite,harbalk/delite,Sam-Cummins/delite