AX: layout tests need to be updated to reflect what is being tested
https://bugs.webkit.org/show_bug.cgi?id=38556

Reviewed by Beth Dakin.

Many of the initial AX layout tests just dumped a lot of attributes and did not
have a focused test. This updates some of those tests (more to follow in the future).

* accessibility/image-map1.html:
* accessibility/img-aria-button-alt-tag-expected.txt:
* accessibility/img-aria-button-alt-tag.html:
* accessibility/input-image-alt-expected.txt:
* accessibility/input-image-alt.html:
* accessibility/placeholder-expected.txt:
* accessibility/placeholder.html:
* platform/mac/accessibility/image-map1-expected.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/accessibility/input-image-alt.html b/LayoutTests/accessibility/input-image-alt.html
index 373c5d4..c4333ab 100644
--- a/LayoutTests/accessibility/input-image-alt.html
+++ b/LayoutTests/accessibility/input-image-alt.html
@@ -1,32 +1,32 @@
 <html>
+<html>
+<head>
+<link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
 <script>
-    if (window.layoutTestController)
-        layoutTestController.dumpAsText();
+var successfullyParsed = false;
 </script>
+<script src="../fast/js/resources/js-test-pre.js"></script>
+</head>
 <body id="body">
 
-    <!-- This test makes sure that an input image returns its alt tag as the description -->
- 
     <input type="image" alt="Submit" src="resources/cake.png" width=100 height=100 id="image1">
     
-    <div id="result"></div>
+    <p id="description"></p>
+    <div id="console"></div>
      
     <script>
         if (window.accessibilityController) {
-            var result = document.getElementById("result");
+            description("This test makes sure that an input image returns its alt tag as the description");
 
-            var image1 = document.getElementById("image1");
-            image1.focus();
+            var image1 = document.getElementById("image1").focus();
             var img = accessibilityController.focusedElement;
 
-            var pattern = "Description: Submit";
-            if (img.allAttributes().indexOf(pattern) != -1) {
-                result.innerText += "Test passed\n";
-            }
-            else {
-                 result.innerText += "Test failed\n";
-            }
+            shouldBe("img.description", "'AXDescription: Submit'");
         }
+        successfullyParsed = true;
     </script>
-</body>
+
+<script src="../fast/js/resources/js-test-post.js"></script>
+
+</body> 
 </html>