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

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

Issue 2825803002: Expose internal treegrid role, do some cleanup for table/grid/treegrid handling (Closed)
Patch Set: Fix mac tests Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.h » ('j') | 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 assertEq(1, progressIndicators[0].maxValueForRange); 161 assertEq(1, progressIndicators[0].maxValueForRange);
162 162
163 assertEq(0, scrollBars[0].valueForRange); 163 assertEq(0, scrollBars[0].valueForRange);
164 assertEq(0, scrollBars[0].minValueForRange); 164 assertEq(0, scrollBars[0].minValueForRange);
165 assertEq(1, scrollBars[0].maxValueForRange); 165 assertEq(1, scrollBars[0].maxValueForRange);
166 166
167 chrome.test.succeed(); 167 chrome.test.succeed();
168 }, 168 },
169 169
170 function testTableAttributes() { 170 function testTableAttributes() {
171 var table = rootNode.find({ role: 'table' });; 171 var table = rootNode.find({ role: 'grid' });;
172 assertEq(3, table.tableRowCount); 172 assertEq(3, table.tableRowCount);
173 assertEq(3, table.tableColumnCount); 173 assertEq(3, table.tableColumnCount);
174 174
175 var row1 = table.firstChild; 175 var row1 = table.firstChild;
176 var cell1 = row1.firstChild; 176 var cell1 = row1.firstChild;
177 assertEq(0, cell1.tableCellColumnIndex); 177 assertEq(0, cell1.tableCellColumnIndex);
178 assertEq(1, cell1.tableCellColumnSpan); 178 assertEq(1, cell1.tableCellColumnSpan);
179 assertEq(0, cell1.tableCellRowIndex); 179 assertEq(0, cell1.tableCellRowIndex);
180 assertEq(1, cell1.tableCellRowSpan); 180 assertEq(1, cell1.tableCellRowSpan);
181 181
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // Uncheckable nodes have a checked attribute of undefined 276 // Uncheckable nodes have a checked attribute of undefined
277 var checkTest4 = rootNode.find({ attributes: { name: 'check-test-4' } }); 277 var checkTest4 = rootNode.find({ attributes: { name: 'check-test-4' } });
278 assertTrue(Boolean(checkTest4)); 278 assertTrue(Boolean(checkTest4));
279 assertEq(checkTest4.checked, undefined); 279 assertEq(checkTest4.checked, undefined);
280 280
281 chrome.test.succeed(); 281 chrome.test.succeed();
282 }, 282 },
283 ]; 283 ];
284 284
285 setUpAndRunTests(allTests, 'attributes.html'); 285 setUpAndRunTests(allTests, 'attributes.html');
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698