lementById("target");

  promise_test(async test => {
    const test_pointer = "testPointer";

    let actions = new test_driver.Actions();
    actions = actions.addPointer(test_pointer, "mouse")
      .pointerMove(0,0, {sourceName:test_pointer, origin:target})
      .pointerDown({sourceName:test_pointer, button:actions.ButtonType.RIGHT})
      .pointerUp({sourceName:test_pointer, button:actions.ButtonType.RIGHT});
    target.addEventListener("contextmenu", event => { event.preventDefault(); });
    let poi