browser_test_table_selectable.js (667B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 /** 8 * Test that native HTML table cells are not selectable by default. 9 */ 10 addAccessibleTask( 11 ` 12 <table id="native_table"> 13 <tr> 14 <td id="native_cell">Native cell</td> 15 </tr> 16 </table> 17 `, 18 async function (browser, docAcc) { 19 const nativeCell = findAccessibleChildByID(docAcc, "native_cell"); 20 testStates(nativeCell, 0, 0, STATE_SELECTABLE, 0); 21 }, 22 { topLevel: true, iframe: true, remoteIframe: true, chrome: true } 23 );