Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: third_party/WebKit/LayoutTests/vr/getVRDisplays_always_resolves.html

Issue 2614873002: Ensure navigator.getVRDisplays always resolves. (Closed)
Patch Set: Addition test nits Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | third_party/WebKit/Source/modules/vr/VRController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698