[DEFAULT]
support-files = [
  "pointerlock_utils.js",
  "iframe_differentDOM.html",
  "!/gfx/layers/apz/test/mochitest/apz_test_utils.js",
]

["test_closewindow-with-pointerlock.html"]

["test_pointerlock-api.html"]
tags = "fullscreen"
scheme = "https"
support-files = [
  "file_pointerlock-api.html",
  "file_pointerlock-api-with-shadow.html",
  "file_pointerlockerror.html",
  "file_escapeKey.html",
  "file_withoutDOM.html",
  "file_removedFromDOM.html",
  "file_pointerLockPref.html",
  "file_nestedFullScreen.html",
  "file_doubleLock.html",
  "file_childIframe.html",
  "file_movementXY.html",
  "file_infiniteMovement.html",
  "file_retargetMouseEvents.html",
  "file_targetOutOfFocus.html",
  "file_screenClientXYConst.html",
  "file_suppressSomeMouseEvents.html",
  "file_locksvgelement.html",
  "file_allowPointerLockSandboxFlag.html",
  "file_changeLockElement.html",
]
skip-if = [
  "true", # Disabled for many intermittent and permanent failure on various configurations.
]

["test_pointerlock_focus.html"]

["test_pointerlock_target_not_in_active_document.html"]

["test_pointerlock_xorigin_iframe.html"]
support-files = [
  "file_pointerlock_xorigin_iframe.html",
  "file_pointerlock_xorigin_iframe_no_user_gesture.html",
  "file_pointerlock_xorigin_iframe_not_focused.html",
]
skip-if = [
  "os == 'win' && os_version == '11.26200'", # Bug 2019745
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'", # Bug 1857057
]

["test_pointerlock_xorigin_iframe_movementXY.html"]
skip-if = [
  "os == 'android'", # bug 1897103
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'", # Bug 1857057
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && opt && xorigin", # Bug 1897207
  "os == 'mac' && os_version == '10.15' && arch == 'x86_64' && opt", # Bug 1897207
  "os == 'mac' && os_version == '14.70' && arch == 'x86_64' && opt", # Bug 1897207
  "os == 'mac' && os_version == '15.30' && arch == 'aarch64'", # Bug 2034604
  "os == 'win' && os_version == '11.26100' && arch == 'x86_64' && opt && xorigin && verify-standalone", # Bug 1897207
  "os == 'win' && os_version == '11.26200' && arch == 'x86_64' && opt && xorigin && verify-standalone", # Bug 1897207
]
