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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs

Issue 1099023005: Implement support for <audio> in ChromeVox Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
index be99afdb455273be0b6bb8fe08cb1654f129b70c..556512140a178a0c60bd8048bc4741e9d815f0b5 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
@@ -137,3 +137,34 @@ TEST_F('OutputE2ETest', 'Headings', function() {
]}, o.toSpannable());
});
});
+
+TEST_F('OutputE2ETest', 'Audio', function() {
+ this.runWithLoadedTree('<audio src="foo.mp3" controls></audio>',
+ function(root) {
+ var el = root.firstChild.firstChild.firstChild.firstChild;
+ var range = cursors.Range.fromNode(el);
+ var o = new Output().withSpeechAndBraille(range, null, 'navigate');
+ assertEqualsJSON({string_: 'media control|Tool bar|||play|Button',
+ spans_:
+ // Entered container toolbar.
+
+ // Button.
+ [{value: 'name', start: 23, end: 23},
+ {value: 'value', start: 24, end: 24},
+ {value: 'description', start: 25, end: 29},
+ {value: 'role', start: 30, end: 36},
+
+ // Button earcon.
+ {value: {}, start: 30, end: 36}]
+ }, o.toSpannableForTest());
+
+ el = el.nextSibling;
+ var prevRange = range;
+ range = cursors.Range.fromNode(el);
+ var o = new Output().withSpeechAndBraille(range, prevRange, 'navigate');
+ assertEqualsJSON({string_: '0, , slider|audio time scrubber',
+ spans_:
+ [{value: 'help', start: 12, end: 31}]
+ }, o.toSpannableForTest());
+ });
+});
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698