Changes between Version 13 and Version 14 of Writing Layout Tests for DumpRenderTree


Ignore:
Timestamp:
Jan 19, 2010, 6:30:14 PM (15 years ago)
Author:
tkent@chromium.org
Comment:

Add description of parameters of eventSender.mouseDown(), and add eventSender.keyDown().

Legend:

Unmodified
Added
Removed
Modified
  • Writing Layout Tests for DumpRenderTree

    v13 v14  
    5656Jumps the current event time forward by a specified number of miliseconds.
    5757
    58 === `mouseDown()` ===
     58=== `mouseDown([buttonNumber [, modifiers]])` ===
    5959
    6060Sends a mouseDown event to the WebView at the current mouse position.
    6161
    62 === `mouseUp()` ===
     62buttonNumber; 0:left button, 1:middle button, 2:right button.
     63
     64modifiers; See keyDown().
     65
     66=== `mouseUp([buttonNumber [, modifiers]])` ===
    6367
    6468Sends a mouseUp event to the WebView at the current mouse position.
     69
     70=== `keyDown(character [, modifiers]])` ===
     71
     72Sends a keyDown event to the WebView.
     73
     74modifiers: An array of strings. A string should be a modifier key name in the followings:
     75 * `"ctrlKey"`
     76 * `"shiftKey"`
     77 * `"altKey"`
     78 * `"metaKey"` (Command key in Mac)
     79 * `"addSelectionKey"` (equivalent to metaKey in Mac, ctrlKey in Windows)
     80 * `"rangeSelectionKey"` (equivalent to shiftKey in Mac and Windows)
     81
    6582
    6683=== `enableDOMUIEventLogging` ===