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

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

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Rebase Created 3 years, 11 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
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs
index 763fbe731d1b84c1ba5165e2ec31cffda9da9350..2b1293f01d1546f2a67d8c976d4c51fd0d08e266 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing_test.extjs
@@ -33,7 +33,7 @@ EditingTest.prototype = {
assertLineData: function(doc, data) {
this.runWithLoadedTree(doc, function(root) {
- var input = root.find({role: RoleType.textField});
+ var input = root.find({role: RoleType.TEXT_FIELD});
input.addEventListener('focus', this.newCallback(function() {
var textHandler = ChromeVoxState.desktopAutomationHandler
.textEditHandler_.editableText_;
@@ -75,9 +75,9 @@ line 3
TEST_F('EditingTest', 'Focus', function() {
var mockFeedback = this.createMockFeedback();
this.runWithLoadedTree(doc, function(root) {
- var singleLine = root.find({role: RoleType.textField,
+ var singleLine = root.find({role: RoleType.TEXT_FIELD,
attributes: {name: 'singleLine'}});
- var textarea = root.find({role: RoleType.textField,
+ var textarea = root.find({role: RoleType.TEXT_FIELD,
attributes: {name: 'textArea'}});
singleLine.focus();
mockFeedback
@@ -98,7 +98,7 @@ TEST_F('EditingTest', 'Focus', function() {
TEST_F('EditingTest', 'Multiline', function() {
var mockFeedback = this.createMockFeedback();
this.runWithLoadedTree(doc, function(root) {
- var textarea = root.find({role: RoleType.textField,
+ var textarea = root.find({role: RoleType.TEXT_FIELD,
attributes: {name: 'textArea'}});
textarea.focus();
mockFeedback
@@ -147,7 +147,7 @@ TEST_F('EditingTest', 'TextButNoSelectionChange', function() {
</script>
*/},
function(root) {
- var input = root.find({role: RoleType.textField});
+ var input = root.find({role: RoleType.TEXT_FIELD});
input.focus();
mockFeedback
.expectSpeech('text1', 'Edit text')

Powered by Google App Engine
This is Rietveld 408576698