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

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

Issue 2659853006: Add getFrameData and getPose layout tests (Closed)
Patch Set: Add more tests Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/vr/getFrameData_oneframeupdate.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 src="resources/test-constants.js"></script>
8 <script>
9 let fakeDisplays = fakeVRDisplays();
10
11 vr_test( (t, mock_service) => {
12 return navigator.getVRDisplays().then( (displays) => {
13 var display = displays[0];
14 mock_service.mockVRDisplays_[0].setPose(VALID_POSE);
15 var fd = new VRFrameData();
16 t.step( () => {
17 assert_false(display.getFrameData(fd));
18 }, "getFrameData did not update object initially");
19
20 function checkLater() {
21 t.step( () => {
22 assert_false(display.getFrameData(fd));
23 }, "getFrameData did not update object after delay");
24 t.done();
25 }
26
27 window.setTimeout(checkLater, 500);
28 }, (err) => {
29 t.step( () => {
30 assert_unreached("getVRDisplays rejected");
31 });
32 t.done();
33 });
34 }, [fakeDisplays["Pixel"]],
35 "getFrameData does not update objects until data is available after rAF call");
36
37 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/vr/getFrameData_oneframeupdate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698