Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: LayoutTests/accessibility/media-element.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../fast/js/resources/js-test-pre.js"></script>
4 <script>
5 var vidAXObject;
6 var indentLevel = 0;
7
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
11 }
12
13 function indent(count)
14 {
15 var spaces = " ";
16 return spaces.substr(0, count);
17 }
18
19 function dumpObject(axObject)
20 {
21 debug(indent(indentLevel) + "description: " + axObject.descripti on);
22 debug(indent(indentLevel) + "role: " + axObject.role);
23 debug("<br>");
24 }
25
26 function dumpChildren(axObject)
27 {
28 var count = axObject.childrenCount
29 if (!count)
30 return;
31
32 indentLevel += 4;
33 for (var ndx = 0; ndx < count; ndx++) {
34 var childAXObject = axObject.childAtIndex(ndx);
35 dumpObject(childAXObject);
36 if (childAXObject.childrenCount) {
37 // don't bother dumping static text children
38 if ( childAXObject.role != "AXRole: AXStaticText")
39 dumpChildren(childAXObject);
40 }
41 }
42 indentLevel -= 4;
43 }
44
45 function dumpVideoAX()
46 {
47 debug("<br>+++++++++++++++++++++++++++++++++++<br>");
48 debug("State at '" + event.type + "' event:<br>");
49
50 if (!window.accessibilityController)
51 return;
52
53 var body = document.getElementsByTagName("body")[0];
54 body.focus();
55
56 var vidAXObject = accessibilityController.focusedElement.childAt Index(0);
57
58 dumpChildren(vidAXObject);
59
60 if (window.testRunner && event.type == 'canplaythrough')
61 testRunner.notifyDone();
62 }
63 </script>
64 </head>
65
66 <body>
67
68 <video id=vid src="../media/content/test.mp4" controls oncanplaythrough="dum pVideoAX()">
69 </video>
70
71 <div>Dump &lt;video&gt; element controller accessibility object tree at 'can playthrough' event.</div>
72
73 <div id=console></div>
74
75 </body>
76 </html>
77
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/loading-iframe-sends-notification-expected.txt ('k') | LayoutTests/accessibility/placeholder.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698