Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/GUM-deny.html

Issue 2086283003: Update web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into wpt_import Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>getUserMedia() triggers error callback when auth is denied</title>
5 <link rel="author" title="Dominique Hazael-Massieux" href="mailto:dom@w3.org"/>
6 <link rel="help" href="http://w3c.github.io/mediacapture-main/getusermedia.html# error-names">
7 <link rel="help" href="http://w3c.github.io/mediacapture-main/getusermedia.html# idl-def-MediaStreamError">
8 </head>
9 <body>
10 <p class="instructions">When prompted, <strong>please deny</strong> access to
11 the video stream.</p>
12 <h1 class="instructions">Description</h1>
13 <p class="instructions">This test checks that the error callback is triggered
14 when user denies access to the video stream.</p>
15
16 <div id='log'></div>
17 <script src=/resources/testharness.js></script>
18 <script src=/resources/testharnessreport.js></script>
19 <script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["na vigator"], "name":"getUserMedia"}]'></script>
20 <script>
21 var t = async_test("Tests that the error callback is triggered when permission i s denied", {timeout:10000});
22 t.step(function() {
23 navigator.getUserMedia(
24 {video: true},
25 t.step_func(function (stream) {
26 assert_unreached("The success callback should not be triggered since acces s is to be denied");
27 t.done();
28 }),
29 t.step_func(function (error) {
30 assert_equals(error.name, "securityError", "securityError returned");
31 assert_equals(error.constraintName, undefined, "constraintName attribute n ot set for permission denied");
32 t.done();
33 })
34 );
35 });
36 </script>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698