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

Side by Side Diff: LayoutTests/presentation/presentationrequest.html

Issue 1296943003: Presentation API: PresentationRequest.start() requires user gesture. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/modules/presentation/PresentationRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <script>
7
8 async_test(function(t) {
9 var request = new PresentationRequest("http://example.com");
10 request.start().catch(t.step_func(function(e) {
11 assert_true(e instanceof DOMException);
12 assert_equals(e.name, "InvalidAccessError");
13 assert_equals(e.message, "PresentationRequest::start() requires user gesture .");
14 t.done();
15 }));
16 }, "Test that the PresentationRequest.start() requires user gesture.")
17
18 </script>
19 </body>
20 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/modules/presentation/PresentationRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698