From 261ba88daa0d89718d4291b54b0f67427491cb9b Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Fri, 1 Mar 2019 22:39:09 +0000 Subject: [PATCH] Bug 1521964 - Add cloneElementVisually regression tests. r=jya Differential Revision: https://phabricator.services.mozilla.com/D20025 --HG-- extra : moz-landing-system : lando --- .../test/cloneElementVisually_helpers.js | 223 ++++++++++++++++++ dom/media/test/mochitest.ini | 15 ++ ...test_cloneElementVisually_mediastream.html | 74 ++++++ .../test_cloneElementVisually_no_suspend.html | 82 +++++++ .../test_cloneElementVisually_paused.html | 44 ++++ ..._cloneElementVisually_resource_change.html | 66 ++++++ 6 files changed, 504 insertions(+) create mode 100644 dom/media/test/cloneElementVisually_helpers.js create mode 100644 dom/media/test/test_cloneElementVisually_mediastream.html create mode 100644 dom/media/test/test_cloneElementVisually_no_suspend.html create mode 100644 dom/media/test/test_cloneElementVisually_paused.html create mode 100644 dom/media/test/test_cloneElementVisually_resource_change.html diff --git a/dom/media/test/cloneElementVisually_helpers.js b/dom/media/test/cloneElementVisually_helpers.js new file mode 100644 index 000000000000..368f8ee41042 --- /dev/null +++ b/dom/media/test/cloneElementVisually_helpers.js @@ -0,0 +1,223 @@ +const TEST_VIDEO_1 = "http://mochi.test:8888/tests/dom/media/test/bipbop_225w_175kbps.mp4"; +const TEST_VIDEO_2 = "http://mochi.test:8888/tests/dom/media/test/pixel_aspect_ratio.mp4"; +const LONG_VIDEO = "http://mochi.test:8888/tests/dom/media/test/gizmo.mp4"; + +/** + * Ensure that the original