Dragging & dropping a file creates an attachment element even when it's disabled
[WebKit-https.git] / LayoutTests / accessibility / mac / attachment-element-replacement-character.html
1 <!DOCTYPE html><!-- webkit-test-runner [ enableAttachmentElement=true ] -->
2 <html>
3 <body id="body">
4
5 some
6 <attachment id="attachment" title="title" subtitle="subtitle" action="action" progress="0.5"></attachment>
7 test
8
9 <p id="description"></p>
10 <div id="console"></div>
11
12 <script src="../../resources/js-test-pre.js"></script>
13 <script>
14
15     description("This tests that attachment element replacements are present in strings.");
16
17     if (window.accessibilityController) {
18         var body = accessibilityController.rootElement.childAtIndex(0);
19         var startMarker = body.startTextMarker;
20         var endMarker = body.endTextMarker;
21         var textMarkerRange = body.textMarkerRangeForMarkers(startMarker, endMarker);
22         debug("String: \n" + body.stringForTextMarkerRange(textMarkerRange).replace(String.fromCharCode(65532), "[ATTACHMENT]"));
23     }
24
25 </script>
26
27 <script src="../../resources/js-test-post.js"></script>
28 </body>
29 </html>