Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-hidden-updates-alldescendants.html
index b055710..9ccf12c 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src="../fast/js/resources/js-test-pre.js"></script>
+<script src="../resources/js-test-pre.js"></script>
 </head>
 <body id="body">
 
@@ -26,6 +26,7 @@
     description("This tests that if aria-hidden changes on an element, all it's existing children will update their children caches");
 
     if (window.accessibilityController) {
+          jsTestIsAsync = true;
           document.getElementById("main").focus();
           
           var main = accessibilityController.focusedElement;
           var group = document.getElementsByTagName('main')[0];
           var items = group.getElementsByTagName('div');          
           items[0].removeAttribute('aria-hidden');
-
-          // After removing aria-hidden, the new count should be 2.
-          shouldBe("main.childrenCount", "2");          
+          setTimeout(function() {
+              // After removing aria-hidden, the new count should be 2.
+              shouldBe("main.childrenCount", "2");          
           
-          // And most importantly, the DIV that was made non-hidden should have one child now.
-          shouldBe("main.childAtIndex(1).childrenCount", "1");
+              // And most importantly, the DIV that was made non-hidden should have one child now.
+              shouldBe("main.childAtIndex(1).childrenCount", "1");
+              finishJSTest();
+          }, 0);
     }
 
 </script>
 
-<script src="../fast/js/resources/js-test-post.js"></script>
+<script src="../resources/js-test-post.js"></script>
 </body>
 </html>