Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<html>
<head>
<title>Test hide/show events for HTMLListBulletAccessibles on list restyle</title>
<link rel="stylesheet" type="text/css"
<script type="application/javascript"
src="../common.js"></script>
<script type="application/javascript"
src="../name.js"></script>
<script type="application/javascript"
src="../events.js"></script>
<script type="application/javascript">
function runTest() {
this.containerNode = getNode("outerDiv");
this.eventSeq = [
new invokerChecker(EVENT_HIDE, getNode("child")),
new invokerChecker(EVENT_HIDE, getNode("childDoc")),
new invokerChecker(EVENT_SHOW, "newChildDoc"),
new invokerChecker(EVENT_REORDER, this.containerNode),
];
this.invoke = function runTest_invoke() {
this.containerNode.removeChild(getNode("child"));
var docContainer = getNode("docContainer");
var iframe = document.createElement("iframe");
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
iframe.setAttribute("id", "newChildDoc");
docContainer.removeChild(getNode("childDoc"));
docContainer.appendChild(iframe);
};
this.getID = function runTest_getID() {
return "check show events are not incorrectly coalesced";
};
}
// enableLogging("tree");
gA11yEventDumpToConsole = true;
var gQueue = null;
function doTest() {
gQueue = new eventQueue();
gQueue.push(new runTest());
gQueue.invoke(); // SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
addA11yLoadEvent(doTest);
</script>
</head>
<body>
<a target="_blank"
title="content process crash caused by missing show event">
</a>
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test">
</pre>
<div id="outerDiv">
<div id="child">foo</div>
<div id="docContainer">
<iframe id="childDoc" src="about:blank">
</iframe>
</div>
</div>
</body>
</html>