OLD | NEW |
(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> |
OLD | NEW |