summaryrefslogtreecommitdiffstats
path: root/toolkit/components/pictureinpicture/tests/browser_toggleOpaqueOverlay.js
blob: 18c906bf209984ef6fa494b7d98164fd7c9b3bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

/**
 * Tests that the Picture-in-Picture toggle is not clickable when
 * overlaid with opaque elements.
 */
add_task(async () => {
  const PAGE = TEST_ROOT + "test-opaque-overlay.html";
  await testToggle(PAGE, {
    "video-full-opacity": { canToggle: false },
    "video-full-opacity-over-toggle": { canToggle: false },
  });
});