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

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

Issue 2599113002: Add the first layout tests for WebVR to test navigator.getVRDisplays with mocked vr_service mojo in… (Closed)
Patch Set: Created 3 years, 12 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 src="../resources/mojo-helpers.js"></script>
5 <script src="resources/fake-vr-displays.js"></script>
6 <script src="resources/mock-vr-service.js"></script>
7 <script>
8
9 vr_test(() => {
10 return navigator.getVRDisplays().then(displays => {
11 assert_true(displays != null);
12 assert_equals(1, displays.length);
13 assert_equals(displays[0].displayName, 'FakeVRDevice');
14 assert_true(displays[0].capabilities.hasOrientation);
15 assert_true(displays != null);
16 });
17 }, fakeVRDisplays(), 'test 1 VRDisplay');
18
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698