fix to execute on timeout
authorRichard Schwerdtfeger <schwer@us.ibm.com>
Wed, 11 Sep 2013 17:43:51 -0500
changeset 348 5a5a42107c87
parent 347 51efdf12e9b7
child 349 918167c42003
fix to execute on timeout
ARIA-UAIG/1.0/tests/test-files/test34.html
--- a/ARIA-UAIG/1.0/tests/test-files/test34.html	Wed Sep 11 17:36:57 2013 -0500
+++ b/ARIA-UAIG/1.0/tests/test-files/test34.html	Wed Sep 11 17:43:51 2013 -0500
@@ -3,15 +3,16 @@
 	<head>
 		<title>div element with role="menu" and tabindex=0 and aria-activedescendant that references one of two descendant div elements with role=menuitem, and script that changes aria-activedescendant value of menu from one of the menuitems to the other</title>
 		<script type="text/javascript"><!--
-			function changeActivedescendant(evt) {
+			function changeActivedescendant() {
                                 var test = document.getElementById("test");
                                 test.focus();
 				test.setAttribute("aria-activedescendant", "item3");
 				var reporter = document.getElementById("report");
 				reporter.appendChild(reporter.ownerDocument.createTextNode("Script has set active descendant to Item 3."));
 			}
-			window.addEventListener("load", changeActivedescendant, false);
-		//--></script>
+		//	window.addEventListener("load", changeActivedescendant, false);
+                        window.setTimeout(changeActivedescendant, 3000);
+              </script>
 	</head>
 	<body>
 		<div id="test" tabindex="0" role="menu" aria-activedescendant="item2">