function testMultipleStickyModifiersAsync(testDoneCallback) {
  var testCallback = function() {
    mockTap(findKeyById('ControlLeft'));
    mockTap(findKeyById('AltLeft'));
    mockTap(findKeyById('ShiftLeft'));
    mockTypeCharacter(
        'A', 0x41, Modifier.CONTROL | Modifier.ALT | Modifier.SHIFT, 0);

    // Keys should un-stick on a subsequent press.
    mockTypeCharacter('a', 0x41, Modifier.NONE);
    testDoneCallback();
  };
  var config =
      {keyset: 'us', languageCode: 'en', passwordLayout: 'us', name: 'English'};
  onKeyboardReady(testCallback, config);
}
/**
 * Test that multiple sticky keys stack until a character is typed.
 */
Test that multiple sticky keys stack until a character is typed.
Test that multiple sticky keys stack until a character is typed .
function testMultipleStickyModifiersAsync(testDoneCallback) {
  var testCallback = function() {
    mockTap(findKeyById('ControlLeft'));
    mockTap(findKeyById('AltLeft'));
    mockTap(findKeyById('ShiftLeft'));
    mockTypeCharacter(
        'A', 0x41, Modifier.CONTROL | Modifier.ALT | Modifier.SHIFT, 0);
    mockTypeCharacter('a', 0x41, Modifier.NONE);
    testDoneCallback();
  };
  var config =
      {keyset: 'us', languageCode: 'en', passwordLayout: 'us', name: 'English'};
  onKeyboardReady(testCallback, config);
}
function testMultipleStickyModifiersAsync ( testDoneCallback ) { var testCallback = function ( ) { mockTap ( findKeyById ( 'ControlLeft' ) ) ; mockTap ( findKeyById ( 'AltLeft' ) ) ; mockTap ( findKeyById ( 'ShiftLeft' ) ) ; mockTypeCharacter ( 'A' , 0x41 , Modifier . CONTROL | Modifier . ALT | Modifier . SHIFT , 0 ) ; mockTypeCharacter ( 'a' , 0x41 , Modifier . NONE ) ; testDoneCallback ( ) ; } ; var config = { keyset : 'us' , languageCode : 'en' , passwordLayout : 'us' , name : 'English' } ; onKeyboardReady ( testCallback , config ) ; }
Test that multiple sticky keys stack until a character is typed.
Test that multiple sticky keys stack until a character is typed .
// Keys should un-stick on a subsequent press.