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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.js

Issue 1046883002: Use multiline attribute to check for IA2_STATE_MULTILINE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing textarea 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
Index: chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.js
index 767372e8ac382bba9e410b7080359172010e098e..b3ae61b1f730fe92191f903677c9cad5beb6ff41 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/mixins.js
@@ -85,7 +85,7 @@ var allTests = [
function testEditableTextMixins() {
var textFields = rootNode.findAll({ role: 'textField' });
- assertEq(2, textFields.length);
+ assertEq(3, textFields.length);
var EditableTextMixins = [ 'textSelStart', 'textSelEnd' ];
for (var i = 0; i < textFields.length; i++) {
var textField = textFields[i];
@@ -102,13 +102,7 @@ var allTests = [
assertEq(2, input.textSelStart);
assertEq(8, input.textSelEnd);
- var ariaTextbox = textFields[1];
- assertEq('textbox-role', ariaTextbox.attributes.id);
- assertEq(0, ariaTextbox.textSelStart);
- assertEq(0, ariaTextbox.textSelEnd);
-
- var textArea = rootNode.find({ role: 'textArea' });
- assertFalse(textArea == null, 'Should find a textArea in the page');
+ var textArea = textFields[1];
assertEq('textarea', textArea.attributes.id);
for (var i = 0; i < EditableTextMixins.length; i++) {
var mixinAttribute = EditableTextMixins[i];
@@ -118,6 +112,11 @@ var allTests = [
assertEq(0, textArea.textSelStart);
assertEq(0, textArea.textSelEnd);
+ var ariaTextbox = textFields[2];
+ assertEq('textbox-role', ariaTextbox.attributes.id);
+ assertEq(0, ariaTextbox.textSelStart);
+ assertEq(0, ariaTextbox.textSelEnd);
+
chrome.test.succeed();
},

Powered by Google App Engine
This is Rietveld 408576698