Bug 1690906: Fix Event-dispatch-redispatch.html to pass on macOS with non-native theme enabled. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D104110
This commit is contained in:
Stephen A Pohl 2021-02-18 04:34:01 +00:00
Родитель 08348e5b8d
Коммит 39a3e2ab8c
2 изменённых файлов: 1 добавлений и 12 удалений

Просмотреть файл

@ -1,5 +0,0 @@
[Event-dispatch-redispatch.html]
[Redispatching mouseup event whose default action dispatches a click event]
expected:
if (os == "linux") and not non_native_theme: FAIL
if os == "win": FAIL

Просмотреть файл

@ -105,13 +105,7 @@ async function testMouseUpAndClickEvent() {
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");