Clean up asynchronous behavior in some accessibility tests
[WebKit-https.git] / LayoutTests / accessibility / mac / selected-rows-table.html
index a2b52ad..bbd0ed0 100644 (file)
         document.getElementById("notifications").innerHTML += "Notification: " + notification + "<br>";
         if (notification == "AXSelectedRowsChanged") {
             axTree.removeNotificationListener();
-            window.testRunner.notifyDone();
+            finishJSTest();
         }
     }
 
     if (window.accessibilityController) {
-        window.testRunner.waitUntilDone();
+        window.jsTestIsAsync = true;
 
         document.getElementById("grid").focus();
 
@@ -60,7 +60,8 @@
 
         // Change the selected state to ensure the notification is sent.
         document.getElementById("row0").setAttribute("aria-selected", "false");
-    }
+    } else
+        debug("window.accessibilityController is not present");
 
 </script>