Make accessibility/mac/selection-notification-focus-change.html more reliable and...
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 27 Jan 2018 06:26:09 +0000 (06:26 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 27 Jan 2018 06:26:09 +0000 (06:26 +0000)
commitb055eb4c3ec9422653369e9abb1cb7fe4143ef66
tree860f5aa19831761a0c59e08b097e747af6828c06
parent14a742ee0964a6d60a6d4d30b50b76a181c7c7a4
Make accessibility/mac/selection-notification-focus-change.html more reliable and re-enable it
https://bugs.webkit.org/show_bug.cgi?id=182198
<rdar://problem/36930258>

Reviewed by Tim Horton.

Refactored the test by splitting each test case into its own function split by setTimeout by zero seconds
instead of triggering the next test case when receiving a specific notification to make the test more robust.

Also moved functions which trigger the focus move into evalAndLog so that they appear in the expected result,
and added more logging to make the debugging of the test easier.

Finally, added WebKit2 specific expected result because it has one extra test failure compared to WebKit1.

* accessibility/mac/selection-notification-focus-change-expected.txt:
* accessibility/mac/selection-notification-focus-change.html:
* platform/mac-wk2/accessibility/mac: Added.
* platform/mac-wk2/accessibility/mac/selection-notification-focus-change-expected.txt: Added.
* platform/mac/TestExpectations: Removed the flaky test failure expectation since this test should now have
the same expected result everywhere on macOS.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/mac/selection-notification-focus-change-expected.txt
LayoutTests/accessibility/mac/selection-notification-focus-change.html
LayoutTests/platform/mac-wk2/accessibility/mac/selection-notification-focus-change-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/TestExpectations