Commit f8ba3be7 authored by ap@apple.com's avatar ap@apple.com

platform/mac/accessibility/iframe-aria-hidden.html is flaky

https://bugs.webkit.org/show_bug.cgi?id=127323

Reviewed by Chris Fleizach.

This test got de-flaked on bots by rolling out r162354. But there was still
a potential race in it, which this change fixes.

* platform/mac-wk2/TestExpectations: Removed expectation.

* platform/mac/accessibility/iframe-aria-hidden.html: Run the test in onload, as
frames load asynchronously.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4263b14c
2014-01-21 Alexey Proskuryakov <ap@apple.com>
platform/mac/accessibility/iframe-aria-hidden.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=127323
Reviewed by Chris Fleizach.
This test got de-flaked on bots by rolling out r162354. But there was still
a potential race in it, which this change fixes.
* platform/mac-wk2/TestExpectations: Removed expectation.
* platform/mac/accessibility/iframe-aria-hidden.html: Run the test in onload, as
frames load asynchronously.
2014-01-21 Chris Fleizach <cfleizach@apple.com>
AX: Mac: Expose the visible text of a password field to AX
......@@ -451,8 +451,6 @@ webkit.org/b/126962 plugins/plugin-document-load-prevented-userscript.html [ Cra
webkit.org/b/127316 svg/dom/SVGPolygonElement-baseVal-list-removal-crash.html [ Pass Timeout ]
webkit.org/b/127323 platform/mac/accessibility/iframe-aria-hidden.html [ Pass Failure ]
### END OF (3) Unclassified failures
########################################
......
......@@ -14,24 +14,29 @@ var successfullyParsed = false;
<div id="console"></div>
<script>
description("This tests that aria-hidden will affect the visibility of the web area and scroll view.");
description("This tests that aria-hidden will affect the visibility of the web area and scroll view.");
if (window.accessibilityController) {
jsTestIsAsync = true;
if (window.accessibilityController) {
// Get the iframe reference.
document.getElementById("body").focus();
var body = accessibilityController.focusedElement;
document.getElementById("body").focus();
// Get the iframe reference.
var body = accessibilityController.focusedElement;
window.onload = function() {
shouldBe("body.childrenCount", "3");
shouldBe("body.childAtIndex(0).childrenCount", "0");
document.getElementById("iframe").setAttribute("aria-hidden", "false");
shouldBe("body.childrenCount", "4");
shouldBe("body.childAtIndex(0).childAtIndex(0).childAtIndex(0).role", "'AXRole: AXWebArea'");
finishJSTest();
}
} else
testFailed("This test relies on accessibilityController, please use run-webkit-tests to run it.")
successfullyParsed = true;
successfullyParsed = true;
</script>
<script src="../../../resources/js-test-post.js"></script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment