| Index: third_party/WebKit/LayoutTests/vr/requestAnimationFrame_called.html
|
| diff --git a/third_party/WebKit/LayoutTests/vr/requestAnimationFrame_called.html b/third_party/WebKit/LayoutTests/vr/requestAnimationFrame_called.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..29a8381fbaa2592c31dc91f102320e9cd054f18d
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/vr/requestAnimationFrame_called.html
|
| @@ -0,0 +1,28 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script src="../resources/mojo-helpers.js"></script>
|
| +<script src="resources/fake-vr-displays.js"></script>
|
| +<script src="resources/mock-vr-service.js"></script>
|
| +<script>
|
| +let fakeDisplays = fakeVRDisplays();
|
| +
|
| +vr_test( (t) => {
|
| + return navigator.getVRDisplays().then( (displays) => {
|
| + let display = displays[0];
|
| +
|
| + function onAnimationFrame() {
|
| + t.done();
|
| + }
|
| +
|
| + display.requestAnimationFrame(onAnimationFrame);
|
| + }, (err) => {
|
| + t.step( () => {
|
| + assert_unreached("getVRDisplays rejected");
|
| + });
|
| + t.done();
|
| + });
|
| +}, [fakeDisplays["Pixel"]],
|
| +"requestAnimationFrame properly calls the provided callback");
|
| +
|
| +</script>
|
|
|