Skip to content

Commit

Permalink
Fix Event-dispatch-redispatch.html to pass on macOS with non-native t…
Browse files Browse the repository at this point in the history
…heme enabled.

Differential Revision: https://phabricator.services.mozilla.com/D104110

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1690906
gecko-commit: 919c966f070e4bcd8ae3a885248a919828f527f9
gecko-reviewers: emilio
  • Loading branch information
Stephen A Pohl authored and moz-wptsync-bot committed Feb 18, 2021
1 parent c30545d commit c503a88
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions dom/events/Event-dispatch-redispatch.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 105,7 @@
await waitForLoad;
let bounds = buttonElement.getBoundingClientRect();
test(() => { assert_true(true); }, `Synthesizing click on button...`);
new test_driver.Actions()
.pointerMove(Math.floor(bounds.width / 5),
Math.floor(bounds.height / 2),
{origin: buttonElement})
.pointerDown({button: test_driver.Actions.prototype.ButtonType.LEFT})
.pointerUp({button: test_driver.Actions.prototype.ButtonType.LEFT})
.send()
new test_driver.click(buttonElement)
.then(() => {
test_mouseup_redispatching.step(() => {
assert_not_equals(clickEvent, undefined, "mouseup and click events should've been fired");
Expand Down

0 comments on commit c503a88

Please sign in to comment.