blob: 32c1b38c5d1d84cd88f36c7401894e999d776476 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
</head>
<body>
<script>
promise_test(function() {
assert_idl_attribute(navigator, 'getDisplayMedia');
return navigator.getDisplayMedia().then(function(s) {
fail('getDisplayMedia should have failed');
}).catch(function(e) {
assert_equals(e.name, 'NotSupportedError');
});
}, 'getDisplayMedia() call');
</script>
</body>
</html>