browser_aria_keyshortcuts.js (567B)
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 aria-keyshortcuts 9 */ 10 addAccessibleTask( 11 ` 12 <div id="btn" role="button" aria-keyshortcuts="Alt+Shift+f">bar</div> 13 `, 14 (browser, accDoc) => { 15 let btn = getNativeInterface(accDoc, "btn"); 16 is( 17 btn.getAttributeValue("AXKeyShortcutsValue"), 18 "Alt+Shift+f", 19 "aria-keyshortcuts value is correct" 20 ); 21 } 22 );