Fix a relative path in accessibility/mac/removing-textarea-after-edit-crash.html
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 20 Sep 2015 19:52:04 +0000 (19:52 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 20 Sep 2015 19:52:04 +0000 (19:52 +0000)
after moving the test.
https://bugs.webkit.org/show_bug.cgi?id=149217

Patch by Chris Fleizach <cfleizach@apple.com> on 2015-09-20
Reviewed by Alexey Proskuryakov.

* accessibility/mac/removing-textarea-after-edit-crash.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190033 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/accessibility/mac/removing-textarea-after-edit-crash.html

index 9f75d4c..41c534f 100644 (file)
@@ -1,3 +1,13 @@
+2015-09-20 Chris Fleizach <cfleizach@apple.com>
+
+        Fix a relative path in accessibility/mac/removing-textarea-after-edit-crash.html
+        after moving the test.
+        https://bugs.webkit.org/show_bug.cgi?id=149217
+
+        Reviewed by Alexey Proskuryakov.
+
+        * accessibility/mac/removing-textarea-after-edit-crash.html:
+
 2015-09-20  Alexey Proskuryakov  <ap@apple.com>
 
         [Mac, iOS] AccessibilityController doesn't uninstall global notification handler
index 55ad2f2..48e3097 100644 (file)
@@ -39,17 +39,15 @@ text
     var req = 0;
     if (window.accessibilityController) {  
         window.jsTestIsAsync = true;
-        document.getElementById("body").focus();
-        body = accessibilityController.focusedElement;
 
         // Access the text area so that an accessibility element is created (so that it will send out notifications).        
-        body.childAtIndex(0).childAtIndex(0);
+        accessibilityController.accessibleElementById("textarea");
 
         document.getElementById("textarea").focus();
 
         req = new XMLHttpRequest;
         req.onreadystatechange = processStateChange;
-        req.open("get", "../../../http/tests/xmlhttprequest/methods.cgi", true);
+        req.open("get", "../../http/tests/xmlhttprequest/methods.cgi", true);
         // Sending this after a timeout makes is so that the layout does not happen until the value change is sent.
         setTimeout("req.send('')", 1);
     } else