Source code
Revision control
Copy as Markdown
Other Tools
/* Any copyright is dedicated to the Public Domain.
"use strict";
// The harness fails this test because it leaves the mouse button pressed.
add_task(async function leaveMouseDown() {
ok(!window.windowUtils.isMouseDown, "The mouse is up when the test starts");
EventUtils.synthesizeMouseAtCenter(gBrowser.selectedBrowser, {
type: "mousedown",
});
ok(window.windowUtils.isMouseDown, "The mouse is down after a mousedown");
});