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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html
diff --git a/third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html b/third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html
index 41bcafbe8cba4e5d835fa32bef116e17e5fda325..9b95cff27f93b1637241e67cea6ea897c3866e81 100644
--- a/third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html
+++ b/third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html
@@ -5,11 +5,20 @@
<script src="resources/mock-vr-service.js"></script>
<script>
-vr_test((service) => {
- return navigator.getVRDisplays().then(devices => {
- assert_true(devices != null);
- assert_equals(0, devices.length);
+vr_test( (t) => {
+ return navigator.getVRDisplays().then( (displays) => {
+ t.step( () => {
+ assert_true(displays != null);
+ assert_equals(displays.length, 0);
+ }, "getVRDisplays returned correct results");
+ }, (err) => {
+ t.step( () => {
+ assert_unreached("getVRDisplays rejected");
});
-}, [], 'test no VRDisplay');
+ }).then( () => {
+ t.done();
+ });
+}, [],
+"WebVR properly returns zero displays");
</script>

Powered by Google App Engine
This is Rietveld 408576698