Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /presentation-api/controlling-ua/startNewPresentation_error.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Presentation API, start new presentation tests for Controlling User Agent (error)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
// -----------------------------------
// Start New Presentation Test - begin
// -----------------------------------
promise_test(function (t) {
var request = new PresentationRequest('presentation.html');
return promise_rejects_dom(t, 'InvalidAccessError', request.start());
}, "The presentation could not start, because a user gesture is required.");
// ----------------------------------
// Launch New Presentation Test - end
// ----------------------------------
</script>