chromium/chrome/test/data/extensions/api_test/automation/tests/tabs/table_properties.js

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

var RoleType = chrome.automation.RoleType;

var allTests = [
  function tableProperties() {
    var cell = rootNode.find({role: RoleType.CELL});
    assertEq('Cell 1', cell.name);
    assertEq('Header 1', cell.tableCellColumnHeaders[0].name);
    var cell2 = cell.nextSibling;
    assertEq('Cell 2', cell2.name);
    assertEq('Header 2', cell2.tableCellColumnHeaders[0].name);
    chrome.test.succeed();
  }
];

setUpAndRunTabsTests(allTests, 'table.html');