OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 |
| 6 promise_test(t => navigator.getVRDisplays().then(devices => { |
| 7 assert_true(devices != null); |
| 8 assert_true(devices instanceof Array); |
| 9 assert_greater_than_equal(0, devices.length); |
| 10 |
| 11 if (devices.length > 0) |
| 12 assert_true(devices[0] instanceof VRDisplay); |
| 13 }), "Test that getVRDisplays always resolves with at least an empty sequence."); |
| 14 |
| 15 </script> |
OLD | NEW |