LayoutTests/ChangeLog

 12018-02-28 Nan Wang <n_wang@apple.com>
 2
 3 Layout Test accessibility/mac/accessibility-make-first-responder.html is flaky
 4 https://bugs.webkit.org/show_bug.cgi?id=183232
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 The test is flaky because that the UIProcess might have received the IPC message
 9 to set the first responder after we check the current state. Added a delay
 10 in the test to fix that.
 11
 12
 13 * accessibility/mac/accessibility-make-first-responder.html:
 14
1152018-02-28 Nan Wang <n_wang@apple.com>
216
317 AX: AOM: Dispatch accessiblesetvalue event
229115

LayoutTests/accessibility/mac/accessibility-make-first-responder.html

4040 var input = document.getElementById("input");
4141 debug("DOM focus");
4242 input.focus();
43  testRunner.runUIScript(isWindowFirstResponderScript(), function(result) {
44  debug("Window is still the first responder: " + result);
45  input.blur();
46  // 2. Now make sure accessibility focus will make web content the first responder.
47  testAccessibilityMakeFirstResonder();
48  });
 43 // Give it some delay for the IPC to happen.
 44 setTimeout(
 45 function(){
 46 testRunner.runUIScript(isWindowFirstResponderScript(), function(result) {
 47 debug("Window is still the first responder: " + result);
 48 input.blur();
 49 // 2. Now make sure accessibility focus will make web content the first responder.
 50 testAccessibilityMakeFirstResonder();
 51 });
 52 },
 53 100);
4954 }
5055
5156 function testAccessibilityMakeFirstResonder() {

5358 var inputObj = accessibilityController.accessibleElementById("input");
5459 debug("Accessibility focus")
5560 inputObj.takeFocus();
56  testRunner.runUIScript(isWindowFirstResponderScript(), function(result) {
57  debug("Window is still the first responder: " + result);
58  finishTest();
59  });
 61 // Give it some delay for the IPC to happen.
 62 setTimeout(
 63 function(){
 64 testRunner.runUIScript(isWindowFirstResponderScript(), function(result) {
 65 debug("Window is still the first responder: " + result);
 66 finishTest();
 67 });
 68 },
 69 100);
6070 }
6171 }
6272
229115