Bug 1716413 - Wait for APZ stable in test_mouse_event_with_control_on_mac.html; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D119869
This commit is contained in:
Edgar Chen 2021-07-14 11:21:40 +00:00
parent 123ce22152
commit f2ec91f9fa
2 changed files with 5 additions and 3 deletions

View File

@ -7,9 +7,8 @@ skip-if = toolkit == "cocoa" || (toolkit == 'android' && debug) || android_versi
[test_keypress_event_with_alt_on_mac.html]
skip-if = toolkit != "cocoa"
[test_mouse_event_with_control_on_mac.html]
skip-if =
toolkit != "cocoa"
fission && xorigin # Bug 1716413 - New fission platform triage
skip-if = toolkit != "cocoa"
support-files = !/gfx/layers/apz/test/mochitest/apz_test_utils.js
[test_picker_no_crash.html]
skip-if = toolkit != "windows" || e10s # Bug 1267491
support-files = window_picker_no_crash_child.html

View File

@ -4,6 +4,8 @@
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SpecialPowers.js"></script>
<script src="/tests/SimpleTest/paint_listener.js"></script>
<script src="/tests/gfx/layers/apz/test/mochitest/apz_test_utils.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
<style>
#target {
@ -63,6 +65,7 @@ function waitAndCheckMouseEvents(aTarget, aExpectedEvents) {
add_task(async function Init() {
await SimpleTest.promiseFocus();
await waitUntilApzStable();
let target = document.getElementById("target");
target.addEventListener("click", function() {