diff --git a/ar-barebones.html b/ar-barebones.html index dbccf2f04..23576b309 100644 --- a/ar-barebones.html +++ b/ar-barebones.html @@ -103,7 +103,9 @@ xrButton.innerHTML = 'Exit AR'; // Show which type of DOM Overlay got enabled (if any) - document.getElementById('session-info').innerHTML = 'DOM Overlay type: ' + session.domOverlayState.type; + if (session.domOverlayState) { + document.getElementById('session-info').innerHTML = 'DOM Overlay type: ' + session.domOverlayState.type; + } session.addEventListener('end', onSessionEnded); let canvas = document.createElement('canvas'); diff --git a/tests/index.html b/tests/index.html index 0b393d244..c3f4c256b 100644 --- a/tests/index.html +++ b/tests/index.html @@ -140,6 +140,10 @@

Test Pages

{ title: 'Interrupted AR', category: 'Exceptions!', path: 'interrupted-ar.html', description: 'Tests what happens when an exception is thrown in promise resolve of an `immersive-ar` session request.' }, + + { title: 'Sparse Frames', category: 'M_ss_ng Fr_m_s', + path: 'sparse-frames.html', + description: 'Tests what happens the framebuffer is not populated every frame.' }, ]; let mainElement = document.getElementById("main"); diff --git a/tests/sparse-frames.html b/tests/sparse-frames.html new file mode 100644 index 000000000..345edf652 --- /dev/null +++ b/tests/sparse-frames.html @@ -0,0 +1,220 @@ + + + + + + + + + + + + + Sparse Frames + + +
+
+ Sparse Frames +

+ This test pages only submits content (a frame filled with a solid + color) every N frames so that the effect it produces on various + browsers and devices can be observed. + Back +
+


+
+ +
+ +
+ +
+

+
+
+ + + +