Index: third_party/WebKit/LayoutTests/vr/getVRDisplays_native_impl.html |
diff --git a/third_party/WebKit/LayoutTests/vr/getVRDisplays_native_impl.html b/third_party/WebKit/LayoutTests/vr/getVRDisplays_native_impl.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f36cfbfb22b43aca4a3fd4a20d9a0072526a934f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/vr/getVRDisplays_native_impl.html |
@@ -0,0 +1,11 @@ |
+<!DOCTYPE html> |
ddorwin
2017/01/05 20:33:02
Regarding the file name:
It seems that mocking sh
|
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script> |
+ |
+promise_test(t => navigator.getVRDisplays().then(devices => { |
+ assert_true(devices != null); |
ddorwin
2017/01/05 20:33:02
Can we check the type?
|
+ assert_greater_than_equal(0, devices.length); |
+}), "Test that getVRDisplays always resolves to at least an empty array."); |
ddorwin
2017/01/05 20:33:02
s/to/with/ ?
s/array/sequence/
|
+ |
+</script> |