| Index: third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html
|
| diff --git a/third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html b/third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ea26338e306df2c2dbf9f4b61554fbca77cf35bb
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| +
|
| +promise_test(t => navigator.getVRDisplays().then(devices => {
|
| + assert_true(devices != null);
|
| + assert_true(devices instanceof Array);
|
| + assert_greater_than_equal(0, devices.length);
|
| +
|
| + if (devices.length > 0)
|
| + assert_true(devices[0] instanceof VRDisplay);
|
| +}), "Test that getVRDisplays always resolves with at least an empty sequence.");
|
| +
|
| +</script>
|
|
|