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

Unified Diff: third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html

Issue 2616403002: Revert of Add more WebVR layout tests, adjust test format (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 9b95cff27f93b1637241e67cea6ea897c3866e81..41bcafbe8cba4e5d835fa32bef116e17e5fda325 100644
--- a/third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html
+++ b/third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html
@@ -5,20 +5,11 @@
<script src="resources/mock-vr-service.js"></script>
<script>
-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");
+vr_test((service) => {
+ return navigator.getVRDisplays().then(devices => {
+ assert_true(devices != null);
+ assert_equals(0, devices.length);
});
- }).then( () => {
- t.done();
- });
-}, [],
-"WebVR properly returns zero displays");
+}, [], 'test no VRDisplay');
</script>

Powered by Google App Engine
This is Rietveld 408576698