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

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

Issue 2623613002: Reland 2617183002 without offending tests (Closed)
Patch Set: 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script> 4 <script src="../resources/mojo-helpers.js"></script>
5 <script src="resources/mock-vr-service.js"></script> 5 <script src="resources/mock-vr-service.js"></script>
6 <script> 6 <script>
7 7
8 vr_test((service) => { 8 vr_test( (t) => {
9 return navigator.getVRDisplays().then(devices => { 9 return navigator.getVRDisplays().then( (displays) => {
10 assert_true(devices != null); 10 t.step( () => {
11 assert_equals(0, devices.length); 11 assert_true(displays != null);
12 assert_equals(displays.length, 0);
13 }, "getVRDisplays returned correct results");
14 }, (err) => {
15 t.step( () => {
16 assert_unreached("getVRDisplays rejected");
12 }); 17 });
13 }, [], 'test no VRDisplay'); 18 }).then( () => {
19 t.done();
20 });
21 }, [],
22 "WebVR properly returns zero displays");
14 23
15 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698