зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
08348e5b8d
Коммит
39a3e2ab8c
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче