| Index: LayoutTests/presentation/presentationrequest.html
|
| diff --git a/LayoutTests/presentation/presentationrequest.html b/LayoutTests/presentation/presentationrequest.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c9870506b9ffc4d29f6ecc841fb95a3809fa8063
|
| --- /dev/null
|
| +++ b/LayoutTests/presentation/presentationrequest.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| +
|
| +async_test(function(t) {
|
| + var request = new PresentationRequest("http://example.com");
|
| + request.start().catch(t.step_func(function(e) {
|
| + assert_true(e instanceof DOMException);
|
| + assert_equals(e.name, "InvalidAccessError");
|
| + assert_equals(e.message, "PresentationRequest::start() requires user gesture.");
|
| + t.done();
|
| + }));
|
| +}, "Test that the PresentationRequest.start() requires user gesture.")
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|