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

Side by Side Diff: chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js

Issue 2059533003: Expose html attributes in automation tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/renderer/resources/extensions/automation/automation_node.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var ActiveDescendantAttribute = [ 'activeDescendant' ]; 5 var ActiveDescendantAttribute = [ 'activeDescendant' ];
6 var LinkAttributes = [ 'url' ]; 6 var LinkAttributes = [ 'url' ];
7 var DocumentAttributes = [ 'docUrl', 7 var DocumentAttributes = [ 'docUrl',
8 'docTitle', 8 'docTitle',
9 'docLoaded', 9 'docLoaded',
10 'docLoadingProgress' ]; 10 'docLoadingProgress' ];
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 DocumentAttributes, 235 DocumentAttributes,
236 ScrollableAttributes, 236 ScrollableAttributes,
237 EditableTextAttributes, 237 EditableTextAttributes,
238 RangeAttributes, 238 RangeAttributes,
239 TableAttributes, 239 TableAttributes,
240 TableCellAttributes); 240 TableCellAttributes);
241 for (var attributeAttr in allAttributes) { 241 for (var attributeAttr in allAttributes) {
242 assertFalse(attributeAttr in div); 242 assertFalse(attributeAttr in div);
243 } 243 }
244 chrome.test.succeed(); 244 chrome.test.succeed();
245 },
246
247 function testHtmlAttributes() {
248 var editable = rootNode.find({ role: 'textField' });
249 assertTrue(editable !== undefined);
250 assertEq('text', editable.htmlAttributes.type);
251 chrome.test.succeed();
245 } 252 }
246 ]; 253 ];
247 254
248 setUpAndRunTests(allTests, 'attributes.html'); 255 setUpAndRunTests(allTests, 'attributes.html');
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/automation/automation_node.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698