[getdisplaymedia.https.html]
  disabled:
    if os == "android": bug 1550895 (frequently fails on geckoview)
    if os == "mac" and os_version == "14.70" and processor == "x86_64" and debug: Bug 1931210
    if os == "mac" and os_version == "14.70" and processor == "x86_64" and not debug: Bug 1931210

  [displaySurface is supported]
    expected: FAIL

  [getDisplayMedia({"selfBrowserSurface":"invalid"}) must fail with TypeError]
    expected: FAIL

  [getDisplayMedia({"surfaceSwitching":"invalid"}) must fail with TypeError]
    expected: FAIL

  [getDisplayMedia({"systemAudio":"invalid"}) must fail with TypeError]
    expected: FAIL

  [getDisplayMedia({"video":{"displaySurface":"monitor"}}) with getSettings]
    expected: FAIL

  [getDisplayMedia({"video":{"displaySurface":"window"}}) with getSettings]
    expected: FAIL

  [getDisplayMedia({"video":{"displaySurface":"browser"}}) with getSettings]
    expected: FAIL

  [suppressLocalAudioPlayback is supported]
    expected: FAIL

  [getDisplayMedia({"audio":{"suppressLocalAudioPlayback":true}}) with getSettings]
    expected: FAIL

  [getDisplayMedia({"audio":{"suppressLocalAudioPlayback":false}}) with getSettings]
    expected: FAIL

  [getDisplayMedia() with getCapabilities]
    expected: FAIL

  [getDisplayMedia({"monitorTypeSurfaces":"invalid"}) must fail with TypeError]
    expected: FAIL

  [getDisplayMedia({"video":{"displaySurface":"monitor"},"monitorTypeSurfaces":"exclude"}) rejects with TypeError]
    expected: FAIL

  [getDisplayMedia({"video":{"displaySurface":"monitor"},"monitorTypeSurfaces":"include"}) resolves with a monitor track]
    expected: FAIL

  [getDisplayMedia({"monitorTypeSurfaces":"exclude"}) resolves with a non monitor track]
    expected: FAIL

  [applyConstraints(width or height) must downscale precisely]
    expected:
      if not fission and debug: [PASS, FAIL]
