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

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

Issue 2799443002: Implemented ARIA colindex, rowindex, colcount and rowcount for Chromevox. (Closed)
Patch Set: Fixed Blink test.# with '#' will be ignored, and an empty message aborts the commit. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js
index 75cdaf592a4046c6862c230d25f9a37d10bca7a9..8de91b4a2647228a435be030627ab54aa9e64268 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js
@@ -20,10 +20,14 @@ var RangeAttributes = [ 'valueForRange',
'minValueForRange',
'maxValueForRange' ];
var TableAttributes = [ 'tableRowCount',
- 'tableColumnCount' ];
+ 'tableColumnCount',
+ 'ariaRowCount',
+ 'ariaColumnCount' ];
var TableCellAttributes = [ 'tableCellColumnIndex',
+ 'ariaCellColumnIndex',
'tableCellColumnSpan',
'tableCellRowIndex',
+ 'ariaCellRowIndex',
'tableCellRowSpan' ];
var allTests = [
@@ -170,51 +174,67 @@ var allTests = [
function testTableAttributes() {
var table = rootNode.find({ role: 'grid' });;
assertEq(3, table.tableRowCount);
+ assertEq(103, table.ariaRowCount);
assertEq(3, table.tableColumnCount);
+ assertEq(53, table.ariaColumnCount);
var row1 = table.firstChild;
var cell1 = row1.firstChild;
assertEq(0, cell1.tableCellColumnIndex);
+ assertEq(51, cell1.ariaCellColumnIndex);
assertEq(1, cell1.tableCellColumnSpan);
assertEq(0, cell1.tableCellRowIndex);
+ assertEq(101, cell1.ariaCellRowIndex);
assertEq(1, cell1.tableCellRowSpan);
var cell2 = cell1.nextSibling;
assertEq(1, cell2.tableCellColumnIndex);
+ assertEq(52, cell2.ariaCellColumnIndex);
assertEq(1, cell2.tableCellColumnSpan);
assertEq(0, cell2.tableCellRowIndex);
+ assertEq(101, cell2.ariaCellRowIndex);
assertEq(1, cell2.tableCellRowSpan);
var cell3 = cell2.nextSibling;
assertEq(2, cell3.tableCellColumnIndex);
+ assertEq(53, cell3.ariaCellColumnIndex);
assertEq(1, cell3.tableCellColumnSpan);
assertEq(0, cell3.tableCellRowIndex);
+ assertEq(101, cell3.ariaCellRowIndex);
assertEq(1, cell3.tableCellRowSpan);
var row2 = row1.nextSibling;
var cell4 = row2.firstChild;
assertEq(0, cell4.tableCellColumnIndex);
+ assertEq(51, cell4.ariaCellColumnIndex);
assertEq(2, cell4.tableCellColumnSpan);
assertEq(1, cell4.tableCellRowIndex);
+ assertEq(102, cell4.ariaCellRowIndex);
assertEq(1, cell4.tableCellRowSpan);
var cell5 = cell4.nextSibling;
assertEq(2, cell5.tableCellColumnIndex);
+ assertEq(53, cell5.ariaCellColumnIndex);
assertEq(1, cell5.tableCellColumnSpan);
assertEq(1, cell5.tableCellRowIndex);
+ assertEq(102, cell5.ariaCellRowIndex);
assertEq(2, cell5.tableCellRowSpan);
var row3 = row2.nextSibling;
var cell6 = row3.firstChild;
assertEq(0, cell6.tableCellColumnIndex);
+ assertEq(51, cell6.ariaCellColumnIndex);
assertEq(1, cell6.tableCellColumnSpan);
assertEq(2, cell6.tableCellRowIndex);
+ assertEq(103, cell6.ariaCellRowIndex);
assertEq(1, cell6.tableCellRowSpan);
var cell7 = cell6.nextSibling;
assertEq(1, cell7.tableCellColumnIndex);
+ assertEq(52, cell7.ariaCellColumnIndex);
assertEq(1, cell7.tableCellColumnSpan);
assertEq(2, cell7.tableCellRowIndex);
+ assertEq(103, cell7.ariaCellRowIndex);
assertEq(1, cell7.tableCellRowSpan);
chrome.test.succeed();

Powered by Google App Engine
This is Rietveld 408576698