ual to -1 */
          {surfaceX: +5 /*, surfaceY: -1 */}, /* Same with implicit surfaceY */
          {surfaceX: maxLongValue+1, surfaceY: +5}, /* 'long' overflow for X */
          {surfaceX: +5, surfaceY: maxLongValue+1}, /* 'long' overflow for Y */
      ].forEach(init => {
          assert_throws_js(RangeError, () => new CapturedMouseEvent("", init),
                          `eventInitDict=${JSON.stringify(init)}`);
      });
  }, "Invalid surfaceX/surfaceY options cause a RangeError to be thrown");

