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_equals(typeof devices, "object"); | |
ddorwin
2017/01/06 02:26:10
`devices instanceof Array` should work and be a li
| |
9 assert_greater_than_equal(0, devices.length); | |
ddorwin
2017/01/06 02:26:09
You could add:
if (0 < devices.length)
assert_tr
| |
10 }), "Test that getVRDisplays always resolves to at least an empty sequence."); | |
ddorwin
2017/01/06 02:26:10
Should "to" be "with"? (Not sure if you missed thi
| |
11 | |
12 </script> | |
OLD | NEW |