Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  test_vrDisplay_exitPresent.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/vr/test/mochitest/test_vrDisplay_exitPresent.html


<!DOCTYPE html>
<html>
  <head>
    <title>VRDisplay ExitPresent</title>
    <meta name="timeout" content="long"/>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="VRSimulationDriver.js"></script>
    <script src="runVRTest.js"></script>
  </head>
  <body>
    <script>
      function testExitPresentOnOtherIframe(content) {
          return content.navigator.getVRDisplays().then((displays) => {
            content.vrDisplay = displays[0];
            return content.vrDisplay.exitPresent();
        });
      }
      var initVRPresentation = function(content) {
        return VRSimulationDriver.AttachWebVRDisplay().then(() => {
          return content.navigator.getVRDisplays().then((displays) => {
            content.vrDisplay = displays[0];
            content.canvas = content.document.createElement("canvas");
            content.canvas.id = "vrCanvas";
            return content.vrDisplay.requestPresent([{source:content.canvas}]);
          });
        });
      }
      function startTest() {
        var ifr1 = document.getElementById("iframe1");
        var ifr2 = document.getElementById("iframe2");
        var frame1 = ifr1.contentWindow;
        var frame2 = ifr2.contentWindow;
        promise_test((test) => {
          return VRSimulationDriver.AttachWebVRDisplay().then(() => {
            return initVRPresentation(frame1).then(() => {
              promise_test((test) => {
                return promise_rejects(test, null, testExitPresentOnOtherIframe(frame2));
              }, "We cannot exit VR presentation established by another content, this promise is expected to be rejected.")
            });
          });
        }, "Finish running WebVR exitPresent test.");
      }
      runVRTest(startTest);
    </script>

    <iframe id="iframe1"></iframe>
    <iframe id="iframe2"></iframe>
  </body>
</html>

Messung V0.5 in Prozent
C=89 H=97 G=93

¤ Dauer der Verarbeitung: 0.23 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002