tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

startNewPresentation_error.https.html (943B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Presentation API, start new presentation tests for Controlling User Agent (error)</title>
      4 <link rel="author" title="Marius Wessel" href="http://www.fokus.fraunhofer.de">
      5 <link rel="help" href="http://w3c.github.io/presentation-api/#dfn-controlling-user-agent">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script>
      9    // -----------------------------------
     10    // Start New Presentation Test - begin
     11    // -----------------------------------
     12    promise_test(function (t) {
     13      var request = new PresentationRequest('presentation.html');
     14      return promise_rejects_dom(t, 'InvalidAccessError', request.start());
     15    }, "The presentation could not start, because a user gesture is required.");
     16    // ----------------------------------
     17    // Launch New Presentation Test - end
     18    // ----------------------------------
     19 </script>