blob: 2209b8770be42f3bf4da8b471ec2bfc6f9e4314c [file] [log] [blame]
This is a testharness.js-based test.
PASS getDisplayMedia in navigator.mediaDevices
PASS getDisplayMedia({"video":true}) must succeed with video
PASS getDisplayMedia({"video":true,"audio":false}) must succeed with video
PASS getDisplayMedia({"audio":false}) must succeed with video
PASS getDisplayMedia({}) must succeed with video
PASS getDisplayMedia(undefined) must succeed with video
FAIL getDisplayMedia({"video":false}) must fail with TypeError assert_unreached: getDisplayMedia should have failed Reached unreachable code
PASS getDisplayMedia({"video":{"advanced":[{"width":320}]}}) must fail with TypeError
PASS getDisplayMedia({"video":{"width":{"min":320}}}) must fail with TypeError
PASS getDisplayMedia({"video":{"width":{"exact":320}}}) must fail with TypeError
PASS getDisplayMedia({"video":{"height":{"min":240}}}) must fail with TypeError
PASS getDisplayMedia({"video":{"height":{"exact":240}}}) must fail with TypeError
PASS getDisplayMedia({"video":{"frameRate":{"min":4}}}) must fail with TypeError
PASS getDisplayMedia({"video":{"frameRate":{"exact":4}}}) must fail with TypeError
PASS getDisplayMedia({"audio":true}) must fail with TypeError
PASS getDisplayMedia({"video":false,"audio":true}) must fail with TypeError
PASS getDisplayMedia({"video":true,"audio":true}) must succeed with video maybe audio
PASS getDisplayMedia({"video":{"width":{"max":360}}}) must be constrained
PASS getDisplayMedia({"video":{"height":{"max":240}}}) must be constrained
PASS getDisplayMedia({"video":{"width":{"max":360},"height":{"max":240}}}) must be constrained
PASS getDisplayMedia({"video":{"frameRate":{"max":4}}}) must be constrained
PASS getDisplayMedia({"video":{"frameRate":{"max":4},"width":{"max":360}}}) must be constrained
PASS getDisplayMedia({"video":{"frameRate":{"max":4},"height":{"max":240}}}) must be constrained
PASS getDisplayMedia({"video":{"frameRate":{"max":4},"width":{"max":360},"height":{"max":240}}}) must be constrained
PASS getDisplayMedia({"video":{"width":{"max":0}}}) must fail with OverconstrainedError
PASS getDisplayMedia({"video":{"height":{"max":0}}}) must fail with OverconstrainedError
FAIL getDisplayMedia({"video":{"frameRate":{"max":0}}}) must fail with OverconstrainedError assert_unreached: getDisplayMedia should have failed Reached unreachable code
PASS getDisplayMedia({"video":{"width":{"max":-1}}}) must fail with OverconstrainedError
PASS getDisplayMedia({"video":{"height":{"max":-1}}}) must fail with OverconstrainedError
PASS getDisplayMedia({"video":{"frameRate":{"max":-1}}}) must fail with OverconstrainedError
PASS getDisplayMedia() with getSettings
Harness: the test ran to completion.